langtools/test/tools/javac/annotations/repeatingAnnotations/BasicRepeatingAnnotations.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 @ContainerFor(Foo.class) |
|
41 @Retention(RetentionPolicy.RUNTIME) |
40 @Retention(RetentionPolicy.RUNTIME) |
42 @interface Foos { |
41 @interface Foos { |
43 Foo[] value(); |
42 Foo[] value(); |
44 } |
43 } |
45 |
44 |