diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2017-03-10 15:33:17 -0800 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2017-03-10 15:33:17 -0800 |
commit | f4f31e73f2b5cf6ad6765800329809ef8316d4e6 (patch) | |
tree | 9c23d38739c35577cfc97e1135eb241cef3e40f5 /java/core | |
parent | 81fe52fbd4f0fcfac6259e7eacd9eaddaf0a4c3e (diff) | |
download | protobuf-f4f31e73f2b5cf6ad6765800329809ef8316d4e6.tar.gz protobuf-f4f31e73f2b5cf6ad6765800329809ef8316d4e6.tar.bz2 protobuf-f4f31e73f2b5cf6ad6765800329809ef8316d4e6.zip |
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.java | 1 |
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); |