mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 13:15:25 +07:00
GitOrigin-RevId: 92159e1a64c8b3533d76c5134b4e0216a26b6aee
18 lines
540 B
Java
18 lines
540 B
Java
import org.intellij.lang.annotations.MagicConstant;
|
|
|
|
class TestAssignment {
|
|
interface States {
|
|
int INIT = 0;
|
|
int RUNNING = 1;
|
|
int STOPPED = 2;
|
|
}
|
|
@MagicConstant(valuesFromClass = States.class)
|
|
int state = <warning descr="Should be one of: States.INIT, States.RUNNING, States.STOPPED">0</warning>;
|
|
|
|
@MagicConstant(valuesFromClass = States.class)
|
|
int state2 = States.RUNNING;
|
|
|
|
public TestAssignment() {
|
|
this.state = <warning descr="Should be one of: States.INIT, States.RUNNING, States.STOPPED">0</warning>;
|
|
}
|
|
} |