210 |
|
System.out.println("\n"); |
211 |
|
} |
212 |
|
|
213 |
– |
|
213 |
|
static final class Job { |
214 |
|
final String name; |
215 |
|
final Class<?> elementClass; |
233 |
|
} |
234 |
|
|
235 |
|
public long work(int len, int minIters, int maxIters, long timeLimit) { |
236 |
< |
Map m; |
236 |
> |
final Map m; |
237 |
|
try { |
238 |
< |
m = (Map) mapClass.newInstance(); |
238 |
> |
m = (Map) mapClass.getConstructor().newInstance(); |
239 |
|
} catch (Exception e) { |
240 |
|
throw new RuntimeException("Can't instantiate " + mapClass + ": " + e); |
241 |
|
} |
362 |
|
|
363 |
|
} |
364 |
|
|
366 |
– |
|
365 |
|
static final Random rng = new Random(3122688); |
366 |
|
|
367 |
|
// Shuffle the subarrays for each size. This doesn't fully |