70 |
|
} |
71 |
|
} |
72 |
|
|
73 |
– |
|
73 |
|
static Long[] toLongs(Integer[] ints) { |
74 |
|
Long[] longs = new Long[ints.length]; |
75 |
|
for (int i = 0; i < ints.length; i++) |
99 |
|
return doubles; |
100 |
|
} |
101 |
|
|
103 |
– |
|
102 |
|
static final class Hasher extends Job { |
103 |
|
final Object[] elts; |
104 |
|
final Class<?> mapClass; |
109 |
|
this.mapClass = mapClass; |
110 |
|
} |
111 |
|
public void work() { |
112 |
< |
Map m = null; |
112 |
> |
final Map m; |
113 |
|
try { |
114 |
< |
m = (Map) mapClass.newInstance(); |
114 |
> |
m = (Map) mapClass.getConstructor().newInstance(); |
115 |
|
} catch (Exception e) { |
116 |
|
throw new RuntimeException("Can't instantiate " + mapClass + ": " + e); |
117 |
|
} |