Skip to content

Commit

Permalink
Fix warnings in MethodSorterTest
Browse files Browse the repository at this point in the history
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 014f241
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/java/org/junit/internal/MethodSorterTest.java
Expand Up @@ -17,18 +17,18 @@ public class MethodSorterTest {
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() {}
}

Expand All @@ -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;}
Expand All @@ -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;}
Expand All @@ -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;}
Expand Down

0 comments on commit 014f241

Please sign in to comment.