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]); |
218 |
|
// fill up remaining keys with path-like compounds of previous pairs |
219 |
|
int j = 0; |
220 |
|
while (k < n) |
221 |
< |
keys[k++] = (String) keys[j++] + "/" + (String) keys[j]; |
221 |
> |
keys[k++] = keys[j++] + "/" + keys[j]; |
222 |
|
} |
223 |
|
} |