diff options
Diffstat (limited to 'java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_OverloadedCall_after.java')
-rw-r--r-- | java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_OverloadedCall_after.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_OverloadedCall_after.java b/java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_OverloadedCall_after.java new file mode 100644 index 000000000000..22524625216d --- /dev/null +++ b/java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_OverloadedCall_after.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(<caret>(String) null); + } + } + +}
\ No newline at end of file |