# | Line 45 | Line 45 | public class ConcurrentHashMapTest exten | |
---|---|---|
45 | } | |
46 | ||
47 | /** Re-implement Integer.compare for old java versions */ | |
48 | < | static int compare(int x, int y) { return x < y ? -1 : x > y ? 1 : 0; } |
48 | > | static int compare(int x, int y) { |
49 | > | return (x < y) ? -1 : (x > y) ? 1 : 0; |
50 | > | } |
51 | ||
52 | // classes for testing Comparable fallbacks | |
53 | static class BI implements Comparable<BI> { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |