aboutsummaryrefslogtreecommitdiffhomepage
path: root/java/core
diff options
context:
space:
mode:
authorGravatar Jisi Liu <jisi.liu@gmail.com>2017-03-10 15:33:17 -0800
committerGravatar Jisi Liu <jisi.liu@gmail.com>2017-03-10 15:33:17 -0800
commitf4f31e73f2b5cf6ad6765800329809ef8316d4e6 (patch)
tree9c23d38739c35577cfc97e1135eb241cef3e40f5 /java/core
parent81fe52fbd4f0fcfac6259e7eacd9eaddaf0a4c3e (diff)
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.
Diffstat (limited to 'java/core')
-rw-r--r--java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java1
1 files changed, 1 insertions, 0 deletions
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 <T> void assertGenericListImmutable(List<T> list, T value) {
try {
list.add(value);