ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/DenseMapMicroBenchmark.java
(Generate patch)

Comparing jsr166/src/test/loops/DenseMapMicroBenchmark.java (file contents):
Revision 1.9 by jsr166, Thu Jan 15 18:34:19 2015 UTC vs.
Revision 1.10 by jsr166, Sun Oct 23 03:03:23 2016 UTC

# 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              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines