# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |