Permalink
Browse files

Fix warnings in MethodSorterTest

There were several compiler warnings due to seemingly unused members of
private classes that were only used via reflection.
  • Loading branch information...
marcphilipp committed Jul 15, 2012
1 parent 28938e9 commit 014f2410e81ed3ecc6b82fbac49ab345aab6e90f
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/test/java/org/junit/internal/MethodSorterTest.java
@@ -17,18 +17,18 @@
private static final String DELTA= "void delta()";
private static final String EPSILON= "void epsilon()";
- private static class Dummy {
+ static class Dummy {
Object alpha(int i, double d, Thread t) {return null;}
void beta(int[][] x) {}
int gamma() {return 0;}
void gamma(boolean b) {}
void delta() {}
void epsilon() {}
}
- private static class Super {
+ static class Super {
void testOne() {}
}
- private static class Sub extends Super {
+ static class Sub extends Super {
void testTwo() {}
}
@@ -48,7 +48,7 @@ private String declaredMethods(Class<?> clazz) {
}
@FixMethodOrder(MethodSorters.DEFAULT)
- private static class DummySortWithDefault {
+ static class DummySortWithDefault {
Object alpha(int i, double d, Thread t) {return null;}
void beta(int[][] x) {}
int gamma() {return 0;}
@@ -63,7 +63,7 @@ void epsilon() {}
}
@FixMethodOrder(MethodSorters.JVM)
- private static class DummySortJvm {
+ static class DummySortJvm {
Object alpha(int i, double d, Thread t) {return null;}
void beta(int[][] x) {}
int gamma() {return 0;}
@@ -80,7 +80,7 @@ void epsilon() {}
}
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
- private static class DummySortWithNameAsc {
+ static class DummySortWithNameAsc {
Object alpha(int i, double d, Thread t) {return null;}
void beta(int[][] x) {}
int gamma() {return 0;}

0 comments on commit 014f241

Please sign in to comment.