private static FieldWriter simpleArrayFieldWriter(final String name) {
    return new FieldWriter() {
      @Override
      public void write(AnnotationVisitor visitor, Object value) {
        int len = Array.getLength(value);
        AnnotationVisitor arrayVisitor = visitor.visitArray(name);
        for (int i = 0; i < len; i++) {
          arrayVisitor.visit(null, Array.get(value, i));
        }
        arrayVisitor.visitEnd();
      }
    };
  }
private static FieldWriter simpleArrayFieldWriter ( final String name ) { return new FieldWriter ( ) { @ Override public void write ( AnnotationVisitor visitor , Object value ) { int len = Array . getLength ( value ) ; AnnotationVisitor arrayVisitor = visitor . visitArray ( name ) ; for ( int i = 0 ; i < len ; i ++ ) { arrayVisitor . visit ( null , Array . get ( value , i ) ) ; } arrayVisitor . visitEnd ( ) ; } } ; }
Writes an simple array valued field to the annotation visitor.