--- jsr166/src/test/loops/DenseMapMicroBenchmark.java 2015/01/15 18:34:19 1.9 +++ jsr166/src/test/loops/DenseMapMicroBenchmark.java 2016/10/23 03:03:23 1.10 @@ -109,9 +109,9 @@ public class DenseMapMicroBenchmark { this.mapClass = mapClass; } public void work() { - Map m = null; + final Map m; try { - m = (Map) mapClass.newInstance(); + m = (Map) mapClass.getConstructor().newInstance(); } catch (Exception e) { throw new RuntimeException("Can't instantiate " + mapClass + ": " + e); }