org.eclipse.jdt.compiler.apt.tests/resources/targets/model8/InterfaceTest.java
raw| 1 | package targets.model8; |
| 2 | import java.lang.annotation.Target; |
| 3 | import java.lang.annotation.ElementType; |
| 4 | |
| 5 | @Target({ElementType.TYPE_USE}) @interface TypeAnnot {} |
| 6 | |
| 7 | interface Iface { |
| 8 | static void foo(@TypeAnnot int i) {} |
| 9 | } |
| 10 | |
| 11 | public class InterfaceTest implements Iface { |
| 12 | |
| 13 | public static void main(String[] argv) { |
| 14 | Iface.foo(10); |
| 15 | } |
| 16 | } |
| 17 |