Annotation
JDK1.5之后内部提供的三个注解
@Deprecated 意思是“废弃的,过时的”
1 @Documented
2 @Retention(value=RUNTIME)
3 public @interface Deprecated
@Override 意思是“重写、覆盖”
1 @Target(value=METHOD)
2 @Retention(value=SOURCE)
3 public @interface Override
@SuppressWarnings 意思是“压缩警告”
1 @Target(value= {TYPE,FIELD,METHOD,PARAMETER,CONSTRUCTOR,LOCAL_VARIABLE})
2 @Retention(value=SOURCE)
3 public @interface SuppressWarnings