Skip to content

Instantly share code, notes, and snippets.

@agoncal
Created March 11, 2014 20:54
Show Gist options
  • Save agoncal/9494827 to your computer and use it in GitHub Desktop.
Save agoncal/9494827 to your computer and use it in GitHub Desktop.
@Target( { METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })
@Retention(RUNTIME)
@Documented
public @interface List {
URL[] value();
}
constraint.addAnnotationElement("@Target( { METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })\n" +
"\t@Retention(RUNTIME)\n" +
"\t@Documented\n" +
"\tpublic @interface List {\n" +
"\t\t"+getNamed()+"[] value();\n" +
"\t}");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment