27 |
|
|
28 |
|
import java.util.function.Consumer; |
29 |
|
import java.util.function.Predicate; |
30 |
< |
import jdk.internal.misc.SharedSecrets; |
30 |
> |
// OPENJDK import jdk.internal.access.SharedSecrets; |
31 |
|
|
32 |
|
/** |
33 |
|
* An unbounded priority {@linkplain Queue queue} based on a priority heap. |
75 |
|
* ({@code peek}, {@code element}, and {@code size}). |
76 |
|
* |
77 |
|
* <p>This class is a member of the |
78 |
< |
* <a href="{@docRoot}/java/util/package-summary.html#CollectionsFramework"> |
78 |
> |
* <a href="{@docRoot}/java.base/java/util/package-summary.html#CollectionsFramework"> |
79 |
|
* Java Collections Framework</a>. |
80 |
|
* |
81 |
|
* @since 1.5 |
803 |
|
// Read in (and discard) array length |
804 |
|
s.readInt(); |
805 |
|
|
806 |
< |
SharedSecrets.getJavaObjectInputStreamAccess().checkArray(s, Object[].class, size); |
806 |
> |
jsr166.Platform.checkArray(s, Object[].class, size); |
807 |
|
final Object[] es = queue = new Object[Math.max(size, 1)]; |
808 |
|
|
809 |
|
// Read in all elements. |