瀏覽代碼

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.
Jisi Liu 8 年之前
父節點
當前提交
f4f31e73f2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      java/core/src/test/java/com/google/protobuf/LazyStringArrayListTest.java

+ 1 - 0
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);