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

Comparing jsr166/src/test/tck/ConcurrentSkipListMapTest.java (file contents):
Revision 1.35 by jsr166, Sat Feb 28 18:30:05 2015 UTC vs.
Revision 1.38 by jsr166, Thu Sep 15 16:43:56 2016 UTC

# Line 22 | Line 22 | import junit.framework.TestSuite;
22  
23   public class ConcurrentSkipListMapTest extends JSR166TestCase {
24      public static void main(String[] args) {
25 <        junit.textui.TestRunner.run(suite());
25 >        main(suite(), args);
26      }
27      public static Test suite() {
28          return new TestSuite(ConcurrentSkipListMapTest.class);
# Line 997 | Line 997 | public class ConcurrentSkipListMapTest e
997  
998      static NavigableMap<Integer, Integer> newMap(Class cl) throws Exception {
999          NavigableMap<Integer, Integer> result =
1000 <            (NavigableMap<Integer, Integer>) cl.newInstance();
1000 >            (NavigableMap<Integer, Integer>) cl.getConstructor().newInstance();
1001          assertEquals(0, result.size());
1002          assertFalse(result.keySet().iterator().hasNext());
1003          return result;
# Line 1273 | Line 1273 | public class ConcurrentSkipListMapTest e
1273      }
1274  
1275      static boolean eq(Integer i, int j) {
1276 <        return i == null ? j == -1 : i == j;
1276 >        return (i == null) ? j == -1 : i == j;
1277      }
1278  
1279   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines