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

Comparing jsr166/src/main/java/util/ArrayDeque.java (file contents):
Revision 1.135 by jsr166, Mon Oct 1 00:10:52 2018 UTC vs.
Revision 1.137 by jsr166, Sun Nov 11 17:37:30 2018 UTC

# Line 8 | Line 8 | package java.util;
8   import java.io.Serializable;
9   import java.util.function.Consumer;
10   import java.util.function.Predicate;
11 < import java.util.function.UnaryOperator;
12 < import jdk.internal.misc.SharedSecrets;
11 > // OPENJDK import jdk.internal.access.SharedSecrets;
12  
13   /**
14   * Resizable-array implementation of the {@link Deque} interface.  Array
# Line 917 | Line 916 | public class ArrayDeque<E> extends Abstr
916       * @param operator the operator to apply to each element
917       * @since TBD
918       */
919 <    /* public */ void replaceAll(UnaryOperator<E> operator) {
919 >    /* public */ void replaceAll(java.util.function.UnaryOperator<E> operator) {
920          Objects.requireNonNull(operator);
921          final Object[] es = elements;
922          for (int i = head, end = tail, to = (i <= end) ? end : es.length;
# Line 1240 | Line 1239 | public class ArrayDeque<E> extends Abstr
1239  
1240          // Read in size and allocate array
1241          int size = s.readInt();
1242 <        SharedSecrets.getJavaObjectInputStreamAccess().checkArray(s, Object[].class, size + 1);
1242 >        jsr166.Platform.checkArray(s, Object[].class, size + 1);
1243          elements = new Object[size + 1];
1244          this.tail = size;
1245  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines