From f4f31e73f2b5cf6ad6765800329809ef8316d4e6 Mon Sep 17 00:00:00 2001 From: Jisi Liu Date: Fri, 10 Mar 2017 15:33:17 -0800 Subject: [PATCH] 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. --- .../test/java/com/google/protobuf/LazyStringArrayListTest.java | 1 + 1 file changed, 1 insertion(+) 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 d2bee2a400..2fc3124d4c 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);