Skip to content

Commit 4cb2aa1

Browse files
xdavidwugeorgewfraser
authored andcommitted
test(WarningsTest): fix for unused_throws
It is unused_throw"s", and we do want that one caught.
1 parent 93fc01a commit 4cb2aa1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/org/javacs/WarningsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void unused() {
9292
assertThat(errors, hasItem("unused_method(30)")); // private void unusedMutuallyRecursive1() { ... }
9393
assertThat(errors, hasItem("unused_method(34)")); // private void unusedMutuallyRecursive2() { ... }
9494
assertThat(errors, not(hasItem("unused_method(38)"))); // private int usedByUnusedVar() { ... }
95-
assertThat(errors, not(hasItem("unused_throw(46)"))); // void notActuallyThrown() throws Exception { }
95+
assertThat(errors, hasItem("unused_throws(46)")); // void notActuallyThrown() throws Exception { }
9696
}
9797

9898
@Test

0 commit comments

Comments
 (0)