mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8193300: Miscellaneous changes imported from jsr166 CVS 2018-01
Reviewed-by: martin
This commit is contained in:
parent
c19d18871c
commit
d771fc3a6b
149 changed files with 872 additions and 571 deletions
|
@ -86,8 +86,7 @@ public class LinkedBlockingQueueTest extends JSR166TestCase {
|
|||
* Integers 0 ... n - 1.
|
||||
*/
|
||||
private static LinkedBlockingQueue<Integer> populatedQueue(int n) {
|
||||
LinkedBlockingQueue<Integer> q =
|
||||
new LinkedBlockingQueue<Integer>(n);
|
||||
LinkedBlockingQueue<Integer> q = new LinkedBlockingQueue<>(n);
|
||||
assertTrue(q.isEmpty());
|
||||
for (int i = 0; i < n; i++)
|
||||
assertTrue(q.offer(new Integer(i)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue