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]); |
118 |
|
} |
119 |
|
} |
120 |
|
|
121 |
< |
static void test(int i, int nkeys, String[] key, Class mapClass) throws Exception { |
121 |
> |
static void test(int i, int nkeys, String[] key, Class<?> mapClass) throws Exception { |
122 |
|
System.out.print("Threads: " + i + "\t:"); |
123 |
|
Map<String, String> map = (Map<String,String>)mapClass.newInstance(); |
124 |
|
// Uncomment to start with a non-empty table |