摘要: 1 @Target({ElementType.FIELD, ElementType.METHOD})2 @Retention(RetentionPolicy.RUNTIME)3 public @interface Tonny {4 public int id();5 public String description() default "nothing"; 6 } 1 public class Test { 2 @Tonny(id = 1) 3 public int foo; 4 5 @Tonny(id = 2, description = ... 阅读全文
posted @ 2013-08-05 17:22 堂哥 阅读(212) 评论(0) 推荐(0) 编辑