8006062: Add @Repeatable to repeating annotations regression tests in JDK repo
Reviewed-by: jjg
This commit is contained in:
parent
56dd0c2a5c
commit
3dfc6b7512
@ -27,6 +27,7 @@ import java.lang.annotation.*;
|
|||||||
|
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@ContainedBy(Container.class)
|
@ContainedBy(Container.class)
|
||||||
|
@Repeatable(Container.class)
|
||||||
public @interface Containee {
|
public @interface Containee {
|
||||||
int value();
|
int value();
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,7 @@ import java.lang.annotation.*;
|
|||||||
@Inherited
|
@Inherited
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@ContainedBy(InheritedContainer.class)
|
@ContainedBy(InheritedContainer.class)
|
||||||
|
@Repeatable(InheritedContainer.class)
|
||||||
public @interface InheritedContainee {
|
public @interface InheritedContainee {
|
||||||
int value();
|
int value();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user