From f4f31e73f2b5cf6ad6765800329809ef8316d4e6 Mon Sep 17 00:00:00 2001 From: Jisi Liu Date: Fri, 10 Mar 2017 15:33:17 -0800 Subject: Suppress the last unchecked warning. Likely to be java language issue. Varargs are considered arrays, thus using generic with varargs will cause unchecked warning about generic array creation. --- java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java | 1 + 1 file changed, 1 insertion(+) (limited to 'java') diff --git a/java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java b/java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java index d2bee2a4..2fc3124d 100644 --- a/java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java +++ b/java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java @@ -281,6 +281,7 @@ public class LazyStringArrayListTest extends TestCase { assertGenericListImmutable(byteArrayList, byteArrayList.get(0)); } + @SuppressWarnings("unchecked") private static void assertGenericListImmutable(List list, T value) { try { list.add(value); -- cgit v1.2.3