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