Skip to content

Commit

Permalink
Add missing @test annotation (uber#988)
Browse files Browse the repository at this point in the history
And fix another IntelliJ warning related to Arrays.asList called with
one arg
  • Loading branch information
msridhar authored Jun 28, 2024
1 parent e2846ed commit 09e9a93
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.google.errorprone.CompilationTestHelper;
import com.uber.nullaway.NullAwayTestsBase;
import java.util.Arrays;
import java.util.List;
import org.junit.Ignore;
import org.junit.Test;

Expand Down Expand Up @@ -1765,6 +1766,7 @@ public void testUseOfUnannotatedCode() {
.doTest();
}

@Test
public void boxInteger() {
makeHelper()
.addSourceLines(
Expand Down Expand Up @@ -1796,6 +1798,6 @@ private CompilationTestHelper makeHelper() {
}

private CompilationTestHelper makeHelperWithoutJSpecifyMode() {
return makeTestHelperWithArgs(Arrays.asList("-XepOpt:NullAway:AnnotatedPackages=com.uber"));
return makeTestHelperWithArgs(List.of("-XepOpt:NullAway:AnnotatedPackages=com.uber"));
}
}

0 comments on commit 09e9a93

Please sign in to comment.