25 |
|
} |
26 |
|
|
27 |
|
public static void main(String[] args) throws Exception { |
28 |
< |
Class mapClass = null; |
28 |
> |
Class<?> mapClass = null; |
29 |
|
int numTests = 50; |
30 |
|
int size = 50000; |
31 |
|
|
68 |
|
|
69 |
|
} |
70 |
|
|
71 |
< |
static NavigableMap newMap(Class cl) { |
71 |
> |
static NavigableMap newMap(Class<?> cl) { |
72 |
|
try { |
73 |
|
NavigableMap m = (NavigableMap) cl.newInstance(); |
74 |
|
return m; |
510 |
|
|
511 |
|
static void shuffle(Integer[] keys) { |
512 |
|
int size = keys.length; |
513 |
< |
for (int i=size; i>1; i--) { |
513 |
> |
for (int i = size; i > 1; i--) { |
514 |
|
int r = rng.nextInt(i); |
515 |
|
Integer t = keys[i-1]; |
516 |
|
keys[i-1] = keys[r]; |