Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 84fd87ba8c3335e41ef7b52fbb3b545346e9b6c6 1 parent 59c686f
Stefan Birkner authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main/java/org/junit/internal/MethodSorter.java
2  src/main/java/org/junit/internal/MethodSorter.java
View
@@ -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());
Please sign in to comment.
Something went wrong with that request. Please try again.