From e82e2a2c07c68108f318958ee0355cc835c97743 Mon Sep 17 00:00:00 2001 From: cpovirk Date: Tue, 6 Jun 2023 10:29:29 -0700 Subject: [PATCH] Internal change. RELNOTES=n/a PiperOrigin-RevId: 538224548 --- .../test/com/google/common/collect/FluentIterableTest.java | 4 +--- .../test/com/google/common/collect/FluentIterableTest.java | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/android/guava-tests/test/com/google/common/collect/FluentIterableTest.java b/android/guava-tests/test/com/google/common/collect/FluentIterableTest.java index 84032e20c568..a6aeee6e50ab 100644 --- a/android/guava-tests/test/com/google/common/collect/FluentIterableTest.java +++ b/android/guava-tests/test/com/google/common/collect/FluentIterableTest.java @@ -57,7 +57,7 @@ public void testNullPointerExceptions() { } public void testFromArrayAndAppend() { - FluentIterable units = + FluentIterable unused = FluentIterable.from(TimeUnit.values()).append(TimeUnit.SECONDS); } @@ -101,7 +101,6 @@ public void testConcatIterable() { List list1 = newArrayList(1); List list2 = newArrayList(4); - @SuppressWarnings("unchecked") List> input = newArrayList(list1, list2); FluentIterable result = FluentIterable.concat(input); @@ -123,7 +122,6 @@ public void testConcatVarargs() { List list3 = newArrayList(7, 8); List list4 = newArrayList(9); List list5 = newArrayList(10); - @SuppressWarnings("unchecked") FluentIterable result = FluentIterable.concat(list1, list2, list3, list4, list5); assertEquals(asList(1, 4, 7, 8, 9, 10), newArrayList(result)); assertEquals("[1, 4, 7, 8, 9, 10]", result.toString()); diff --git a/guava-tests/test/com/google/common/collect/FluentIterableTest.java b/guava-tests/test/com/google/common/collect/FluentIterableTest.java index 6a9c2d73f6ec..5a3236cf9a1d 100644 --- a/guava-tests/test/com/google/common/collect/FluentIterableTest.java +++ b/guava-tests/test/com/google/common/collect/FluentIterableTest.java @@ -61,7 +61,7 @@ public void testNullPointerExceptions() { } public void testFromArrayAndAppend() { - FluentIterable units = + FluentIterable unused = FluentIterable.from(TimeUnit.values()).append(TimeUnit.SECONDS); } @@ -105,7 +105,6 @@ public void testConcatIterable() { List list1 = newArrayList(1); List list2 = newArrayList(4); - @SuppressWarnings("unchecked") List> input = newArrayList(list1, list2); FluentIterable result = FluentIterable.concat(input); @@ -127,7 +126,6 @@ public void testConcatVarargs() { List list3 = newArrayList(7, 8); List list4 = newArrayList(9); List list5 = newArrayList(10); - @SuppressWarnings("unchecked") FluentIterable result = FluentIterable.concat(list1, list2, list3, list4, list5); assertEquals(asList(1, 4, 7, 8, 9, 10), newArrayList(result)); assertEquals("[1, 4, 7, 8, 9, 10]", result.toString());