Skip to content

Commit ec20483

Browse files
authored
Fix "ReturnValueIgnored" errors flagged by error-prone
1 parent 7167b23 commit ec20483

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/junit/tests/framework/AssertTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ public void testAssertStringNotEqualsNull() {
8282
assertEquals("foo", null);
8383
fail();
8484
} catch (ComparisonFailure e) {
85-
e.getMessage(); // why no assertion?
85+
String unused = e.getMessage(); // why no assertion?
8686
}
8787
}
8888

8989
public void testAssertNullNotEqualsNull() {
9090
try {
9191
assertEquals(null, new Object());
9292
} catch (AssertionFailedError e) {
93-
e.getMessage(); // why no assertion?
93+
String unused = e.getMessage(); // why no assertion?
9494
return;
9595
}
9696
fail();
@@ -168,4 +168,4 @@ public void testAssertNotSameFailsNull() {
168168
}
169169
fail();
170170
}
171-
}
171+
}

0 commit comments

Comments
 (0)