Browse files

Fix Java 5 compilation problem.

Remove @Override from compare(Method, Method) because Java 5 doesn't
support @Override for implementations of interface methods. You need
Java 6 for this.
  • Loading branch information...
1 parent 59c686f commit 84fd87ba8c3335e41ef7b52fbb3b545346e9b6c6 @stefanbirkner committed Feb 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/junit/internal/MethodSorter.java
View
2 src/main/java/org/junit/internal/MethodSorter.java
@@ -21,7 +21,7 @@
public static Method[] getDeclaredMethods(Class<?> clazz) {
Method[] methods = clazz.getDeclaredMethods();
Arrays.sort(methods, new Comparator<Method>() {
- @Override public int compare(Method m1, Method m2) {
+ public int compare(Method m1, Method m2) {
int i1 = m1.getName().hashCode();
int i2 = m2.getName().hashCode();
return i1 != i2 ? i1 - i2 : m1.toString().compareTo(m2.toString());

0 comments on commit 84fd87b

Please sign in to comment.