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

Comparing jsr166/src/test/loops/MapLoops.java (file contents):
Revision 1.12 by dl, Sat Sep 12 19:36:34 2015 UTC vs.
Revision 1.13 by jsr166, Sun Oct 23 03:03:23 2016 UTC

# Line 104 | Line 104 | public class MapLoops {
104  
105      static void test(int i, int nkeys, Class<?> mapClass) throws Exception {
106          System.out.print("Threads: " + i + "\t:");
107 <        Map<Integer, Integer> map = (Map<Integer,Integer>)mapClass.newInstance();
107 >        Map<Integer, Integer> map =
108 >            (Map<Integer,Integer>) mapClass.getConstructor().newInstance();
109          Integer[] key = makeKeys(nkeys);
110          // Uncomment to start with a non-empty table
111          //        for (int j = 0; j < nkeys; j += 4) // start 1/4 occupied

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines