# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |