Skip to content

Commit 872b67b

Browse files
committed
improve tests
1 parent 5157eb1 commit 872b67b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

nullaway/src/test/java/com/uber/nullaway/jspecify/WildcardTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,8 +1005,9 @@ static class Analysis<
10051005
.doTest();
10061006
}
10071007

1008+
/** ensures we avoid a crash related to wildcards when wildcard handling is disabled */
10081009
@Test
1009-
public void crasherOutsideExperimental() {
1010+
public void methodRefParameterSuperWildcardWithHandlingDisabled() {
10101011
makeTestHelperWithArgs(
10111012
List.of(
10121013
"-XepOpt:NullAway:OnlyNullMarked=true",
@@ -1032,8 +1033,9 @@ private static RuntimeException throwAsUncheckedException(Throwable throwable) {
10321033
.doTest();
10331034
}
10341035

1036+
/** reduced from a crasher found when checking junit */
10351037
@Test
1036-
public void anotherCrasher() {
1038+
public void methodRefReturnUnboundedWildcard() {
10371039
makeHelper()
10381040
.addSourceLines(
10391041
"Test.java",

0 commit comments

Comments
 (0)