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.129 by jsr166, Mon Oct 1 00:10:53 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 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