Skip to content

Commit 5f1e08f

Browse files
committed
add expected errors for testcase
1 parent b3dda68 commit 5f1e08f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ public void genericInferenceOnAssignments() {
184184
" // BUG: Diagnostic contains: passing @Nullable parameter 'null' where @NonNull is required",
185185
" Foo<Object> f2 = Foo.makeNull(null);",
186186
" // ILLEGAL: U does not have a @Nullable upper bound",
187+
" // BUG: Diagnostic contains: passing @Nullable parameter 'null' where @NonNull is required",
187188
" Foo<@Nullable Object> f3 = Foo.makeNonNull(null);",
188189
" // BUG: Diagnostic contains: passing @Nullable parameter 'null' where @NonNull is required",
189190
" Foo<Object> f4 = Foo.makeNonNull(null);",

0 commit comments

Comments
 (0)