ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ConcurrentHashMapTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ConcurrentHashMapTest.java (file contents):
Revision 1.45 by jsr166, Sat Apr 25 04:55:30 2015 UTC vs.
Revision 1.47 by jsr166, Mon Jul 27 03:12:26 2015 UTC

# 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> {
# Line 533 | Line 535 | public class ConcurrentHashMapTest exten
535      /**
536       * Constructor (initialCapacity, loadFactor) throws
537       * IllegalArgumentException if either argument is negative
538 <      */
538 >     */
539      public void testConstructor2() {
540          try {
541              new ConcurrentHashMap(-1, .75f);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines