Skip to content

Commit

Permalink
updating libraryModelNullableUpperBoundsWithoutJarInferTest
Browse files Browse the repository at this point in the history
  • Loading branch information
akulk022 committed Jun 7, 2024
1 parent 71ce2e2 commit 3f4c3e4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,15 @@ public void libraryModelNullableUpperBoundsWithoutJarInferTest() {
Arrays.asList(
"-d",
temporaryFolder.getRoot().getAbsolutePath(),
"-XepOpt:NullAway:AnnotatedPackages=com.uber"))
"-XepOpt:NullAway:AnnotatedPackages=com.uber",
"-XepOpt:NullAway:JSpecifyMode=true"))
.addSourceLines(
"Test.java",
"package com.uber;",
"import org.jspecify.annotations.Nullable;",
"import com.uber.nullaway.libmodel.AnnotationExample;",
"class Test {",
" //TODO: We should get an error here since jar infer is not enabled",
" // BUG: Diagnostic contains: Generic type parameter cannot be @Nullable",
" static AnnotationExample.UpperBoundExample<@Nullable Object> upperBoundExample = new AnnotationExample.UpperBoundExample<@Nullable Object>();",
"}")
.doTest();
Expand Down

0 comments on commit 3f4c3e4

Please sign in to comment.