aboutsummaryrefslogtreecommitdiffstats
path: root/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
diff options
context:
space:
mode:
Diffstat (limited to 'guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java')
-rw-r--r--guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java b/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
index d8e52ec..385b92a 100644
--- a/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
+++ b/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
@@ -19,8 +19,6 @@ package com.google.common.collect.testing;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.fail;
-import com.google.common.annotations.GwtCompatible;
-
import junit.framework.AssertionFailedError;
import java.util.ArrayList;
@@ -47,7 +45,6 @@ import java.util.Stack;
* @author Kevin Bourrillion
* @author Chris Povirk
*/
-@GwtCompatible
abstract class AbstractIteratorTester<E, I extends Iterator<E>> {
private boolean whenNextThrowsExceptionStopTestingCallsToRemove;
private boolean whenAddThrowsExceptionStopTesting;
@@ -425,7 +422,7 @@ abstract class AbstractIteratorTester<E, I extends Iterator<E>> {
private static List<Object> subListCopy(Object[] source, int size) {
final Object[] copy = new Object[size];
- System.arraycopy(source, 0, copy, 0, size);
+ Platform.unsafeArrayCopy(source, 0, copy, 0, size);
return Arrays.asList(copy);
}