Skip to content

Commit 3f4c3e4

Browse files
committed
updating libraryModelNullableUpperBoundsWithoutJarInferTest
1 parent 71ce2e2 commit 3f4c3e4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

library-model/library-model-generator-integration-test/src/test/java/com/uber/nullaway/libmodel/LibraryModelIntegrationTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,15 @@ public void libraryModelNullableUpperBoundsWithoutJarInferTest() {
166166
Arrays.asList(
167167
"-d",
168168
temporaryFolder.getRoot().getAbsolutePath(),
169-
"-XepOpt:NullAway:AnnotatedPackages=com.uber"))
169+
"-XepOpt:NullAway:AnnotatedPackages=com.uber",
170+
"-XepOpt:NullAway:JSpecifyMode=true"))
170171
.addSourceLines(
171172
"Test.java",
172173
"package com.uber;",
173174
"import org.jspecify.annotations.Nullable;",
174175
"import com.uber.nullaway.libmodel.AnnotationExample;",
175176
"class Test {",
176-
" //TODO: We should get an error here since jar infer is not enabled",
177+
" // BUG: Diagnostic contains: Generic type parameter cannot be @Nullable",
177178
" static AnnotationExample.UpperBoundExample<@Nullable Object> upperBoundExample = new AnnotationExample.UpperBoundExample<@Nullable Object>();",
178179
"}")
179180
.doTest();

0 commit comments

Comments
 (0)