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.7 by jsr166, Mon Nov 2 23:55:36 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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines