mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 11:44:39 +07:00
GitOrigin-RevId: fad95d5a40cccc2b2a36d1a2180c3ac08b70fa5b
20 lines
442 B
Java
20 lines
442 B
Java
public enum Test {
|
|
VALUE;
|
|
|
|
void test() {
|
|
Integer code = getCode();
|
|
switch (code) {
|
|
case <error descr="Constant expression, pattern or null is required">VALUE.<error descr="Cannot resolve symbol 'value'">value</error>()</error><EOLError descr="':' or '->' expected"></EOLError>
|
|
}
|
|
if (code == VALUE.value()) {
|
|
getCode();
|
|
}
|
|
|
|
}
|
|
|
|
int value() {
|
|
return ordinal();
|
|
}
|
|
|
|
public native Integer getCode();
|
|
} |