1 package com.annotation; 2 3 import java.lang.annotation.Documented; 4 import java.lang.annotation.ElementType; 5 import java.lang.annotation.Inherited; 6 import java.lang.annotation.Retention; 7 import java.lang.annotation.RetentionPolicy; 8 import java.lang.annotation.Target; 9 10 @Documented 11 @Retention(RetentionPolicy.RUNTIME) 12 @Target({ElementType.TYPE,ElementType.METHOD, 13 ElementType.CONSTRUCTOR,ElementType.ANNOTATION_TYPE, 14 ElementType.PACKAGE,ElementType.FIELD,ElementType.LOCAL_VARIABLE}) 15 @Inherited 16 17 public @interface Unfinished { 18 public enum Priority { LOW, MEDIUM, HIGH } value()19String value(); changedBy()20String[] changedBy() default ""; lastChangedBy()21String[] lastChangedBy() default ""; priority()22Priority priority() default Priority.MEDIUM; createdBy()23String createdBy() default "James Gosling"; lastChanged()24String lastChanged() default "08/07/2011"; 25 } 26 27