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

Comparing jsr166/src/test/tck/ConcurrentLinkedDequeTest.java (file contents):
Revision 1.32 by jsr166, Mon May 28 21:19:50 2018 UTC vs.
Revision 1.34 by jsr166, Tue Aug 13 00:54:51 2019 UTC

# Line 688 | Line 688 | public class ConcurrentLinkedDequeTest e
688      public void testToArray_NullArg() {
689          ConcurrentLinkedDeque q = populatedDeque(SIZE);
690          try {
691 <            q.toArray(null);
691 >            q.toArray((Object[])null);
692              shouldThrow();
693          } catch (NullPointerException success) {}
694      }
# Line 913 | Line 913 | public class ConcurrentLinkedDequeTest e
913      }
914  
915      void runAsync(Runnable r1, Runnable r2) {
916 <        boolean b = ThreadLocalRandom.current().nextBoolean();
916 >        boolean b = randomBoolean();
917          CompletableFuture<Void> f1 = CompletableFuture.runAsync(b ? r1 : r2);
918          CompletableFuture<Void> f2 = CompletableFuture.runAsync(b ? r2 : r1);
919          f1.join();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines