langtools/test/tools/javac/annotations/repeatingAnnotations/DelayRepeatedContainer.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. |
37 String meh() { return "meh"; } |
37 String meh() { return "meh"; } |
38 } |
38 } |
39 |
39 |
40 @Bar("katt") |
40 @Bar("katt") |
41 @Bar("lol") |
41 @Bar("lol") |
42 @ContainedBy(BarContainer.class) |
42 @Repeatable(BarContainer.class) |
43 @interface Bar { |
43 @interface Bar { |
44 String value(); |
44 String value(); |
45 } |
45 } |
46 |
46 |
47 @ContainerFor(Bar.class) |
|
48 @interface BarContainer { |
47 @interface BarContainer { |
49 Bar[] value(); |
48 Bar[] value(); |
50 } |
49 } |