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

Comparing jsr166/src/test/loops/IntMapCheck.java (file contents):
Revision 1.6 by jsr166, Mon Nov 2 23:51:32 2009 UTC vs.
Revision 1.8 by jsr166, Tue Nov 3 01:04:02 2009 UTC

# Line 108 | Line 108 | public class IntMapCheck {
108          timer.start(nm, n * iters);
109          for (int j = 0; j < iters; ++j) {
110              for (int i = 0; i < n; i++) {
111 <                if ((Integer) (s.get(i)) != i) ++sum;
111 >                if (s.get(i) != i) ++sum;
112              }
113          }
114          timer.finish();
# Line 272 | Line 272 | public class IntMapCheck {
272          reallyAssert (!s.containsKey(k));
273          while (it.hasNext()) {
274              Map.Entry<Integer,Integer> x = (Map.Entry<Integer,Integer>)(it.next());
275 <            Integer k2 = (Integer) x.getKey();
275 >            Integer k2 = x.getKey();
276              seen.put(k2, k2);
277              if (k2 != MISSING)
278                  ++sum;
# Line 568 | Line 568 | public class IntMapCheck {
568          void finish() {
569              long endTime = System.nanoTime();
570              long time = endTime - startTime;
571 <            double timePerOp = ((double)time)/numOps;
571 >            double timePerOp = ((double) time)/numOps;
572  
573              Object st = accum.get(name);
574              if (st == null)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines