Skip to content

Commit

Permalink
test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Dec 22, 2024
1 parent 353a74b commit 06f11c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nullaway/src/test/java/com/uber/nullaway/CoreTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1080,10 +1080,13 @@ public void synchronizedDeref() {
"package com.uber;",
"import org.jspecify.annotations.Nullable;",
"public class TestCase {",
" public static void foo(@Nullable Object lock) {",
" public static void testPositive(@Nullable Object lock) {",
" // BUG: Diagnostic contains: synchronized block expression \"lock\" is @Nullable",
" synchronized (lock) {}",
" }",
" public static void testNegative(Object lock) {",
" synchronized (lock) {}",
" }",
"}")
.doTest();
}
Expand Down

0 comments on commit 06f11c2

Please sign in to comment.