mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
[java] repeatable annotations: exceptions for target type containment rules (IDEA-274550)
GitOrigin-RevId: 27e1b953cad4f046725b23c68ac4ef3c1b3eaa4c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b0c3bd2060
commit
4a05392295
@@ -64,4 +64,53 @@ class C8 {
|
||||
|
||||
@Documented
|
||||
@Repeatable(<error descr="Container annotation 'AA11' does not have required @Documented annotation">AA11.class</error>)
|
||||
@interface A11 {}
|
||||
@interface A11 {
|
||||
}
|
||||
|
||||
class ElementTypeContainerRules {
|
||||
@Repeatable(Tags1.class)
|
||||
@Target(TYPE_USE)
|
||||
@interface Tag1 {
|
||||
String value();
|
||||
}
|
||||
|
||||
@Target(TYPE)
|
||||
@interface Tags1 {
|
||||
Tag1[] value();
|
||||
}
|
||||
|
||||
|
||||
@Repeatable(Tags2.class)
|
||||
@Target(TYPE)
|
||||
@interface Tag2 {
|
||||
String value();
|
||||
}
|
||||
|
||||
@Target(ANNOTATION_TYPE)
|
||||
@interface Tags2 {
|
||||
Tag2[] value();
|
||||
}
|
||||
|
||||
@Repeatable(Tags3.class)
|
||||
@Target(TYPE_USE)
|
||||
@interface Tag3 {
|
||||
String value();
|
||||
}
|
||||
|
||||
@Target(TYPE_PARAMETER)
|
||||
@interface Tags3 {
|
||||
Tag3[] value();
|
||||
}
|
||||
|
||||
@Repeatable(Tags4.class)
|
||||
@Target(TYPE_USE)
|
||||
@interface Tag4 {
|
||||
String value();
|
||||
}
|
||||
|
||||
@Target(ANNOTATION_TYPE)
|
||||
@interface Tags4 {
|
||||
Tag4[] value();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user