ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/PriorityQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/PriorityQueue.java (file contents):
Revision 1.128 by jsr166, Sun May 6 23:29:25 2018 UTC vs.
Revision 1.130 by jsr166, Sun Nov 11 16:27:28 2018 UTC

# Line 27 | Line 27 | package java.util;
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.
# Line 75 | Line 75 | import jdk.internal.misc.SharedSecrets;
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
# Line 803 | Line 803 | public class PriorityQueue<E> extends Ab
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.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines