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

Comparing jsr166/src/test/loops/ConcurrentQueueLoops.java (file contents):
Revision 1.7 by jsr166, Thu Oct 29 23:09:07 2009 UTC vs.
Revision 1.8 by jsr166, Mon Nov 2 23:42:46 2009 UTC

# Line 25 | Line 25 | public class ConcurrentQueueLoops {
25          if (args.length > 0) {
26              try {
27                  klass = Class.forName(args[0]);
28 <            } catch(ClassNotFoundException e) {
28 >            } catch (ClassNotFoundException e) {
29                  throw new RuntimeException("Class " + args[0] + " not found.");
30              }
31          }
# Line 103 | Line 103 | public class ConcurrentQueueLoops {
103                          return Integer.valueOf(takes);
104                      } else {
105                          for (int i = 0; i < BATCH_SIZE; ++i) {
106 <                            queue.offer(((l & lmask)== 0)? zero : one);
106 >                            queue.offer(((l & lmask)== 0) ? zero : one);
107                              if ((lmask <<= 1) == 0) lmask = 1;
108                              if (i != 0) l = compute(l);
109                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines