Skip to content

Commit

Permalink
minor tweaks to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Oct 9, 2024
1 parent 82f3813 commit cddd77b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ public void annotationAppliedToInnerTypeExplicitly() {
"import org.checkerframework.checker.nullness.qual.Nullable;",
"class Test {",
" Test.@Nullable Foo f1;",
" // @Nullable does not apply to the inner type",
" // BUG: Diagnostic contains: @NonNull field f2 not initialized",
" // @Nullable does not apply to the inner type",
" // BUG: Diagnostic contains: @NonNull field f2 not initialized",
" @Nullable Test.Foo f2;",
" class Foo { }",
" public void test() {",
Expand Down Expand Up @@ -202,7 +202,7 @@ public void typeUseAnnotationOnInnerMultiLevel() {
" A.@Nullable B.C foo2 = null;",
" A.B.@Nullable C foo3 = null;",
" // BUG: Diagnostic contains: Type-use nullability annotations should be applied on inner class",
" @Nullable A.B foo4 = null;",
" @Nullable A.B foo4 = null;",
" // BUG: Diagnostic contains: assigning @Nullable expression to @NonNull field",
" A.B.@Nullable C [][] foo5 = null;",
" A.B.C @Nullable [][] foo6 = null;",
Expand Down Expand Up @@ -317,7 +317,6 @@ public void typeUseAnnotationOnMethodReturnType() {
" // BUG: Diagnostic contains: Type-use nullability annotations should be applied on inner class",
" public @Nullable A.B method4() { return null; }",
" public @Nullable A method5() { return null; }",
" public @Nullable int method6() { return 0; }",
"}")
.doTest();
}
Expand Down

0 comments on commit cddd77b

Please sign in to comment.