aboutsummaryrefslogtreecommitdiff
path: root/core/src/test/java/com/google/common/truth/gwt/TruthGwtTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/java/com/google/common/truth/gwt/TruthGwtTest.java')
-rw-r--r--core/src/test/java/com/google/common/truth/gwt/TruthGwtTest.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/test/java/com/google/common/truth/gwt/TruthGwtTest.java b/core/src/test/java/com/google/common/truth/gwt/TruthGwtTest.java
index 4a10e414..55d4aa91 100644
--- a/core/src/test/java/com/google/common/truth/gwt/TruthGwtTest.java
+++ b/core/src/test/java/com/google/common/truth/gwt/TruthGwtTest.java
@@ -38,7 +38,7 @@ public class TruthGwtTest extends com.google.gwt.junit.client.GWTTestCase {
}
public void testBuildClasses() {
- new Inventory().toString(); // force invocation.
+ String unused = new Inventory().toString(); // force invocation.
}
public void testBoolean() {
@@ -133,10 +133,11 @@ public class TruthGwtTest extends com.google.gwt.junit.client.GWTTestCase {
}
public void testObjectArray() {
- Set[] setOfString = {new HashSet<String>(asList("foo", "bar", "bash"))};
+ Set<?>[] setOfString = {new HashSet<String>(asList("foo", "bar", "bash"))};
assertThat(setOfString).asList().contains(new HashSet<String>(asList("foo", "bar", "bash")));
}
+ @SuppressWarnings("IsInstanceIterable") // test of an intentionally trivially true assertion
public void testDefault() {
assertThat(new Object()).isNotNull();
assertThat(new ArrayList<String>()).isInstanceOf(AbstractList.class);