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.131 by jsr166, Wed Aug 23 22:41:49 2017 UTC vs.
Revision 1.132 by jsr166, Sun Oct 22 17:44:02 2017 UTC

# Line 9 | Line 9 | 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;
13  
14   /**
15   * Resizable-array implementation of the {@link Deque} interface.  Array
# Line 1235 | Line 1236 | public class ArrayDeque<E> extends Abstr
1236  
1237          // Read in size and allocate array
1238          int size = s.readInt();
1239 +        SharedSecrets.getJavaObjectInputStreamAccess().checkArray(s, Object[].class, size + 1);
1240          elements = new Object[size + 1];
1241          this.tail = size;
1242  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines