jdk/test/java/lang/annotation/repeatingAnnotations/subpackage/InheritedContainee.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
25 |
25 |
26 import java.lang.annotation.*; |
26 import java.lang.annotation.*; |
27 |
27 |
28 @Inherited |
28 @Inherited |
29 @Retention(RetentionPolicy.RUNTIME) |
29 @Retention(RetentionPolicy.RUNTIME) |
30 @ContainedBy(InheritedContainer.class) |
|
31 @Repeatable(InheritedContainer.class) |
30 @Repeatable(InheritedContainer.class) |
32 public @interface InheritedContainee { |
31 public @interface InheritedContainee { |
33 int value(); |
32 int value(); |
34 } |
33 } |