mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
24 lines
451 B
Java
24 lines
451 B
Java
// "Fix all 'Constant expression can be evaluated' problems in file" "true"
|
|
class Test {
|
|
private final String field = "field";
|
|
|
|
void test() {
|
|
String foo = "Testtest2";
|
|
String foo2 = "Test" + field;
|
|
int i1 = 2;
|
|
int i2 = 0;
|
|
int i3 = Season.SPRING.i + 2;
|
|
int i4 = Season.i2 + 2;
|
|
}
|
|
|
|
|
|
enum Season {
|
|
SPRING(1);
|
|
public static final int i2 = 2;
|
|
public final int i;
|
|
|
|
Season(int i) {
|
|
this.i = i;
|
|
}
|
|
}
|
|
} |