Skip to content

Commit

Permalink
formatting for CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
haewiful committed May 22, 2024
1 parent 403f8f3 commit bec4bff
Showing 1 changed file with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1740,28 +1740,28 @@ public void testRawTypeReceiverCast() {
@Test
public void testUseOfUnannotatedCode() {
makeHelper()
.addSourceLines(
"Test.java",
"package com.uber;",
"import org.jspecify.annotations.NullMarked;",
"import org.jspecify.annotations.NullUnmarked;",
"import org.jspecify.annotations.Nullable;",
"class Test {",
" @NullUnmarked",
" static class nullUnmarkedClass<S> {",
" static <T> void m1(T t) {}",
" }",
" @NullMarked",
" static class markedClass {",
" static void testInstantiation() {",
" new nullUnmarkedClass<@Nullable String>();",
" }",
" static void testAssignment() {",
" nullUnmarkedClass<@Nullable Integer> var = null;",
" }",
" }",
"}")
.doTest();
.addSourceLines(
"Test.java",
"package com.uber;",
"import org.jspecify.annotations.NullMarked;",
"import org.jspecify.annotations.NullUnmarked;",
"import org.jspecify.annotations.Nullable;",
"class Test {",
" @NullUnmarked",
" static class nullUnmarkedClass<S> {",
" static <T> void m1(T t) {}",
" }",
" @NullMarked",
" static class markedClass {",
" static void testInstantiation() {",
" new nullUnmarkedClass<@Nullable String>();",
" }",
" static void testAssignment() {",
" nullUnmarkedClass<@Nullable Integer> var = null;",
" }",
" }",
"}")
.doTest();
}

public void boxInteger() {
Expand Down

0 comments on commit bec4bff

Please sign in to comment.