ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/jtreg/util/Collection/IteratorMicroBenchmark.java
(Generate patch)

Comparing jsr166/src/test/jtreg/util/Collection/IteratorMicroBenchmark.java (file contents):
Revision 1.26 by jsr166, Sun Jan 7 04:46:20 2018 UTC vs.
Revision 1.27 by jsr166, Sun Jan 7 20:19:00 2018 UTC

# Line 272 | Line 272 | public class IteratorMicroBenchmark {
272  
273          ArrayList<Job> jobs = new ArrayList<>();
274  
275 <        List.of(al, ad, abq,
276 <                new LinkedList<>(al),
277 <                new PriorityQueue<>(al),
278 <                new Vector<>(al),
279 <                new ConcurrentLinkedQueue<>(al),
280 <                new ConcurrentLinkedDeque<>(al),
281 <                new LinkedBlockingQueue<>(al),
282 <                new LinkedBlockingDeque<>(al),
283 <                new LinkedTransferQueue<>(al),
284 <                new PriorityBlockingQueue<>(al))
285 <            .stream()
286 <            .forEach(x -> {
287 <                         jobs.addAll(collectionJobs(x));
288 <                         if (x instanceof Deque)
289 <                             jobs.addAll(dequeJobs((Deque<Integer>)x));
290 <                     });
275 >        List.<Collection<Integer>>of(
276 >            al, ad, abq,
277 >            new LinkedList<>(al),
278 >            new PriorityQueue<>(al),
279 >            new Vector<>(al),
280 >            new ConcurrentLinkedQueue<>(al),
281 >            new ConcurrentLinkedDeque<>(al),
282 >            new LinkedBlockingQueue<>(al),
283 >            new LinkedBlockingDeque<>(al),
284 >            new LinkedTransferQueue<>(al),
285 >            new PriorityBlockingQueue<>(al)).forEach(
286 >                x -> {
287 >                    jobs.addAll(collectionJobs(x));
288 >                    if (x instanceof Deque)
289 >                        jobs.addAll(dequeJobs((Deque<Integer>)x));
290 >                });
291  
292          if (reverse) Collections.reverse(jobs);
293          if (shuffle) Collections.shuffle(jobs);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines