9 |
|
import java.util.function.Consumer; |
10 |
|
import java.util.function.Predicate; |
11 |
|
import java.util.function.UnaryOperator; |
12 |
< |
import jdk.internal.misc.SharedSecrets; |
12 |
> |
// OPENJDK import jdk.internal.access.SharedSecrets; |
13 |
|
|
14 |
|
/** |
15 |
|
* Resizable-array implementation of the {@link Deque} interface. Array |
51 |
|
* Iterator} interfaces. |
52 |
|
* |
53 |
|
* <p>This class is a member of the |
54 |
< |
* <a href="{@docRoot}/java/util/package-summary.html#CollectionsFramework"> |
54 |
> |
* <a href="{@docRoot}/java.base/java/util/package-summary.html#CollectionsFramework"> |
55 |
|
* Java Collections Framework</a>. |
56 |
|
* |
57 |
|
* @author Josh Bloch and Doug Lea |
1240 |
|
|
1241 |
|
// Read in size and allocate array |
1242 |
|
int size = s.readInt(); |
1243 |
< |
SharedSecrets.getJavaObjectInputStreamAccess().checkArray(s, Object[].class, size + 1); |
1243 |
> |
jsr166.Platform.checkArray(s, Object[].class, size + 1); |
1244 |
|
elements = new Object[size + 1]; |
1245 |
|
this.tail = size; |
1246 |
|
|