diff options
Diffstat (limited to 'java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_OverloadedCall.java')
-rw-r--r-- | java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_OverloadedCall.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_OverloadedCall.java b/java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_OverloadedCall.java new file mode 100644 index 000000000000..82c1e9122cc1 --- /dev/null +++ b/java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_OverloadedCall.java @@ -0,0 +1,14 @@ +import org.jetbrains.annotations.Nullable; + +class Test { + void method(@Nullable String o) {} + + void method(@Nullable Integer o) {} + + private void test(String foo) { + if (foo == null) { + method(<warning descr="Value 'foo' is always 'null'"><caret>foo</warning>); + } + } + +}
\ No newline at end of file |