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.11 by jsr166, Wed Dec 31 17:00:58 2014 UTC vs.
Revision 1.13 by jsr166, Sat Oct 29 06:23:09 2016 UTC

# Line 4 | Line 4
4   * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6  
7 < import java.util.*;
8 < import java.util.concurrent.*;
9 < import java.util.concurrent.atomic.*;
10 < import java.util.concurrent.locks.*;
7 > import java.util.Random;
8 > import java.util.Queue;
9  
10   public class UnboundedQueueFillEmptyLoops {
11      static int maxSize = 10000;
# Line 45 | Line 43 | public class UnboundedQueueFillEmptyLoop
43      }
44  
45      static void oneRun(Class<?> klass, int n) throws Exception {
46 <        Queue<Integer> q = (Queue<Integer>) klass.newInstance();
46 >        Queue<Integer> q =
47 >            (Queue<Integer>) klass.getConstructor().newInstance();
48          int sum = total;
49          int m = rng.nextInt(numbers.length);
50          long startTime = System.nanoTime();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines