mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 10:51:06 +07:00
13 lines
265 B
Java
13 lines
265 B
Java
class EnumExample {
|
|
static @interface MyAnnotation {
|
|
MyEnum enumValue();
|
|
}
|
|
|
|
static enum MyEnum { E }
|
|
|
|
static final MyEnum E = MyEnum.E;
|
|
|
|
@MyAnnotation(enumValue = <error descr="Attribute value must be an enum constant">E</error>)
|
|
void method() {}
|
|
}
|