langtools/test/tools/javac/annotations/repeatingAnnotations/NestedContainers.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. |
32 */ |
32 */ |
33 |
33 |
34 import java.lang.annotation.*; |
34 import java.lang.annotation.*; |
35 |
35 |
36 @Retention(RetentionPolicy.RUNTIME) |
36 @Retention(RetentionPolicy.RUNTIME) |
37 @ContainedBy(Foos.class) |
37 @Repeatable(Foos.class) |
38 @interface Foo {} |
38 @interface Foo {} |
39 |
39 |
40 @Retention(RetentionPolicy.RUNTIME) |
40 @Retention(RetentionPolicy.RUNTIME) |
41 @ContainedBy(FoosFoos.class) |
41 @Repeatable(FoosFoos.class) |
42 @ContainerFor(Foo.class) |
|
43 @interface Foos { |
42 @interface Foos { |
44 Foo[] value(); |
43 Foo[] value(); |
45 } |
44 } |
46 |
45 |
47 @ContainerFor(Foos.class) |
|
48 @Retention(RetentionPolicy.RUNTIME) |
46 @Retention(RetentionPolicy.RUNTIME) |
49 @interface FoosFoos { |
47 @interface FoosFoos { |
50 Foos[] value(); |
48 Foos[] value(); |
51 } |
49 } |
52 |
50 |