mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
a test for how dfa treats static final string comparison (IDEA-169892)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class Example {
|
||||
|
||||
public static final String FIRST = "f";
|
||||
public static final String SECOND = "d";
|
||||
public static final String THIRD = FIRST + SECOND;
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(THIRD == "fd");
|
||||
}
|
||||
}
|
||||
@@ -95,6 +95,7 @@ public class DataFlowInspectionTest extends DataFlowInspectionTestCase {
|
||||
public void testCheckEnumConstantConstructor() { doTest(); }
|
||||
public void testCompareToEnumConstant() throws Throwable { doTest(); }
|
||||
public void testEqualsConstant() throws Throwable { doTest(); }
|
||||
public void testInternedStringConstants() throws Throwable { doTest(); }
|
||||
public void testDontSaveTypeValue() { doTest(); }
|
||||
public void testFinalLoopVariableInstanceof() throws Throwable { doTest(); }
|
||||
public void testGreaterIsNotEquals() throws Throwable { doTest(); }
|
||||
|
||||
Reference in New Issue
Block a user