20 |
|
|
21 |
|
public static void main(String[] args) throws Exception { |
22 |
|
|
23 |
< |
Class mapClass = null; |
23 |
> |
Class<?> mapClass = null; |
24 |
|
if (args.length > 0) { |
25 |
|
try { |
26 |
|
mapClass = Class.forName(args[0]); |
96 |
|
} |
97 |
|
} |
98 |
|
|
99 |
< |
static void test(int i, int nkeys, Class mapClass) throws Exception { |
99 |
> |
static void test(int i, int nkeys, Class<?> mapClass) throws Exception { |
100 |
|
System.out.print("Threads: " + i + "\t:"); |
101 |
|
Map<Integer, Integer> map = (Map<Integer,Integer>)mapClass.newInstance(); |
102 |
|
Integer[] key = makeKeys(nkeys); |