| 1 |
package test0348; |
| 2 |
|
| 3 |
import java.lang.annotation.ElementType; |
| 4 |
import java.lang.annotation.Retention; |
| 5 |
import java.lang.annotation.RetentionPolicy; |
| 6 |
import java.lang.annotation.Target; |
| 7 |
|
| 8 |
@Retention(RetentionPolicy.RUNTIME) |
| 9 |
@Target(ElementType.TYPE) |
| 10 |
public @interface TestAnnotationWithStringDefault { |
| 11 |
String emptyString() default ""; |
| 12 |
String string() default "string"; |
| 13 |
|
| 14 |
@TestAnnotationWithStringDefault |
| 15 |
public static class Annotated {} |
| 16 |
|
| 17 |
@TestAnnotationWithStringDefault |
| 18 |
public interface AnnotatedInterface {} |
| 19 |
} |