mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 11:00:04 +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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user