mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
annotation method: detect default value based on "default" keyword (IDEA-237774)
GitOrigin-RevId: 64be4b28fc7fe9e79aae58ddba140bd65d56c2ef
This commit is contained in:
committed by
intellij-monorepo-bot
parent
022c5be762
commit
947bb691fe
+17
@@ -0,0 +1,17 @@
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.TYPE, ElementType.TYPE_USE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@interface MyAnnoWithDefaults {
|
||||
int foo() @Anno[] default {};
|
||||
int @Anno [] foo1() default {};
|
||||
String @Anno [] foo2() default {""};
|
||||
String foo3() @Anno[] default {""};
|
||||
@Anno String foo4() default "";
|
||||
}
|
||||
|
||||
@Target({ElementType.TYPE, ElementType.TYPE_USE})
|
||||
@interface Anno {}
|
||||
Reference in New Issue
Block a user