1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
/* |
8 |
< |
* @test %I% %E% |
8 |
> |
* @test |
9 |
|
* @bug 4486658 |
10 |
|
* @summary Checks that a priority queue returns elements in sorted order across various operations |
11 |
|
*/ |
12 |
|
|
13 |
< |
import java.util.*; |
13 |
> |
import java.util.ArrayList; |
14 |
> |
import java.util.Collections; |
15 |
> |
import java.util.Comparator; |
16 |
> |
import java.util.Iterator; |
17 |
> |
import java.util.List; |
18 |
> |
import java.util.Queue; |
19 |
> |
import java.util.PriorityQueue; |
20 |
|
|
21 |
|
public class PriorityQueueSort { |
22 |
|
|
75 |
|
throw new RuntimeException("Iterator remove test failed."); |
76 |
|
} |
77 |
|
} |
72 |
– |
|