aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/junit/runners/model/FrameworkMethod.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/junit/runners/model/FrameworkMethod.java')
-rw-r--r--src/main/java/org/junit/runners/model/FrameworkMethod.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main/java/org/junit/runners/model/FrameworkMethod.java b/src/main/java/org/junit/runners/model/FrameworkMethod.java
index 4471407..3580052 100644
--- a/src/main/java/org/junit/runners/model/FrameworkMethod.java
+++ b/src/main/java/org/junit/runners/model/FrameworkMethod.java
@@ -28,15 +28,6 @@ public class FrameworkMethod extends FrameworkMember<FrameworkMethod> {
"FrameworkMethod cannot be created without an underlying method.");
}
this.method = method;
-
- if (isPublic()) {
- // This method could be a public method in a package-scope base class
- try {
- method.setAccessible(true);
- } catch (SecurityException e) {
- // We may get an IllegalAccessException when we try to call the method
- }
- }
}
/**
@@ -158,11 +149,6 @@ public class FrameworkMethod extends FrameworkMember<FrameworkMethod> {
}
@Override
- boolean isBridgeMethod() {
- return method.isBridge();
- }
-
- @Override
public boolean equals(Object obj) {
if (!FrameworkMethod.class.isInstance(obj)) {
return false;