Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 001a0f0

Browse files
author
Michal Gajdos
committed
Make core-common jdk6 compatible.
Change-Id: Ia802dc85164d10b877f28a42215d62d4161992c2 Signed-off-by: Michal Gajdos <[email protected]>
1 parent 43c6133 commit 001a0f0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core-common/src/main/java/org/glassfish/jersey/model/internal/CommonConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,7 @@ public int compare(final AutoDiscoverable o1, final AutoDiscoverable o2) {
596596
final int p2 = o2.getClass().isAnnotationPresent(Priority.class)
597597
? o2.getClass().getAnnotation(Priority.class).value() : Priorities.USER;
598598

599-
final int compare = Integer.compare(p1, p2);
600-
return compare == 0 ? -1 : compare;
599+
return (p1 < p2 || p1 == p2) ? -1 : 1;
601600
}
602601
});
603602

0 commit comments

Comments
 (0)