# | Line 233 | Line 233 | public class MapMicroBenchmark { | |
---|---|---|
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 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |