假如我有一个类Apublic class A {
   private String name;
   private String age;
   private String sex;
   private String email;
   private String address;
}要是添加注释的话 public class A {
   @CallTableFilterAnnotation(type="network")
   private String name;
   @CallTableFilterAnnotation(type="network")
   private String age;
   @CallTableFilterAnnotation(type="network")
   private String sex;
   @CallTableFilterAnnotation(type="network")
   private String email;
   @CallTableFilterAnnotation(type="network")
   private String address;
}我要加 5句注释才行。 实施上类A中所有的属性的注释都是一样的。
请问怎么样 为这5个属性统一设置一个注释?
如果可以该怎么写?

解决方案 »

  1.   

    @see ?? 
    楼上的是否能说清楚些。
    试了下@see 貌似不行。。
      

  2.   

    @CallTableFilterAnnotation?
    不知道是什么,看起来好像用于生成代码。还是一个一个来吧,@see 不合适的。
      

  3.   

    to 楼上@CallTableFilterAnnotation 是我自己写的一个注释。
    现在的问题是 10个属性都用同样的注释。
    有没有简便的方法让10个属性只用一个注释就好了。@see 我试了一下 还是要写 1个@CallTableFilterAnnotation  和 9个@see 效果是一样的感觉。
      

  4.   

    Ctrl+C  Ctrl+V
    写一遍,Ctrl+C一次,Ctrl+V 9次