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

Comparing jsr166/src/test/loops/StringMapLoops.java (file contents):
Revision 1.14 by jsr166, Mon Oct 12 20:16:24 2015 UTC vs.
Revision 1.15 by jsr166, Sun Oct 23 03:03:24 2016 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines