diff options
Diffstat (limited to 'java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_Switch.java')
-rw-r--r-- | java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_Switch.java | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_Switch.java b/java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_Switch.java deleted file mode 100644 index e48dc19555bb..000000000000 --- a/java/java-tests/testData/inspection/dataFlow/fixture/ReportConstantReferences_Switch.java +++ /dev/null @@ -1,22 +0,0 @@ -class Test { - private void test() { - int state = 1; - switch (<warning descr="Value 'state' is always '1'">state</warning>) { - case 1: break; - } - } - - private void test2(int state) { - switch (state) { - case ONE: - case TWO: - if (state == TWO) { - System.out.println("hello"); - } - } - } - - public static final int ONE = 1; - public static final int TWO = 2; - -}
\ No newline at end of file |