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.17 by jsr166, Wed Dec 31 17:00:58 2014 UTC vs.
Revision 1.18 by jsr166, Sun Oct 23 03:03:23 2016 UTC

# Line 117 | Line 117 | public class ConcurrentQueueLoops {
117      }
118  
119      static void oneRun(Class<?> klass, int n) throws Exception {
120 <        Queue<Integer> q = (Queue<Integer>) klass.newInstance();
120 >        Queue<Integer> q =
121 >            (Queue<Integer>) klass.getConstructor().newInstance();
122          LoopHelpers.BarrierTimer timer = new LoopHelpers.BarrierTimer();
123          CyclicBarrier barrier = new CyclicBarrier(n + 1, timer);
124          ArrayList<Future<Integer>> results = new ArrayList<Future<Integer>>(n);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines