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 |
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; |
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 |
|
|