Skip to content
Snippets Groups Projects
Commit a2a6a583 authored by Simon Barner's avatar Simon Barner
Browse files

- Fix build with JDK 1.6 which is used on the build server

refs 1841
parent 9c6a70bc
No related branches found
No related tags found
No related merge requests found
...@@ -157,9 +157,11 @@ public abstract class AnnotationViewPartBase extends ViewPart implements ISelect ...@@ -157,9 +157,11 @@ public abstract class AnnotationViewPartBase extends ViewPart implements ISelect
@Override @Override
public int compare(AnnotationEntry a1, AnnotationEntry a2) { public int compare(AnnotationEntry a1, AnnotationEntry a2) {
// Equality of model element implies equal hashCode(), order is arbitrary // Equality of model element implies equal hashCode(), order is arbitrary
// but not relevant for // but not relevant for ensuring uniqueness of annotation entries.
// ensuring uniqueness of annotation entries. //
return Integer.compare(a1.getModelElement().hashCode(), a2 // int Integer.compare(int x, int y) requires JDK 1.7 which is not available
// on the build server
return new Integer(a1.getModelElement().hashCode()).compareTo(a2
.getModelElement().hashCode()); .getModelElement().hashCode());
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment