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

Comparing jsr166/src/test/loops/UnboundedQueueFillEmptyLoops.java (file contents):
Revision 1.9 by jsr166, Thu Dec 18 18:43:22 2014 UTC vs.
Revision 1.10 by jsr166, Sat Dec 20 15:43:58 2014 UTC

# Line 55 | Line 55 | public class UnboundedQueueFillEmptyLoop
55                      m = 0;
56                  q.offer(numbers[m++]);
57              }
58 <            Integer p;
59 <            while ((p = q.poll()) != null)
58 >            for (Integer p; (p = q.poll()) != null; )
59                  sum += p.intValue();
60          }
61          total += sum;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines