Index: third_party/protobuf/java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java |
diff --git a/third_party/protobuf/java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java b/third_party/protobuf/java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java |
index 0f42ac506075b394e2024f754b6208cafdbee361..d2bee2a4001fb655de112967cffcb778c500077d 100644 |
--- a/third_party/protobuf/java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java |
+++ b/third_party/protobuf/java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java |
@@ -32,12 +32,12 @@ package com.google.protobuf; |
import static java.util.Arrays.asList; |
-import junit.framework.TestCase; |
- |
import java.util.ArrayList; |
+import java.util.Collections; |
import java.util.ConcurrentModificationException; |
import java.util.Iterator; |
import java.util.List; |
+import junit.framework.TestCase; |
/** |
* Tests for {@link LazyStringArrayList}. |
@@ -233,7 +233,7 @@ public class LazyStringArrayListTest extends TestCase { |
} |
try { |
- list.addAllByteArray(asList(BYTE_STRING_A.toByteArray())); |
+ list.addAllByteArray(Collections.singletonList(BYTE_STRING_A.toByteArray())); |
fail(); |
} catch (UnsupportedOperationException e) { |
// expected |