Format annotation attributes
This commit is contained in:
parent
3a5fd90d14
commit
f12bcd2911
6 changed files with 275 additions and 16 deletions
14
testsuite/classes/java/CustomAnnotation.java
Normal file
14
testsuite/classes/java/CustomAnnotation.java
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import java.lang.annotation.ElementType;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.TYPE)
|
||||
@CustomAnnotationAnnotation
|
||||
public @interface CustomAnnotation {
|
||||
public CustomAnnotationType type();
|
||||
|
||||
public String name() default "Bob";
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue