I'm using Java's CodeModel to generate some annotations code. However, I can't find a way to indicate that a parameter's default value should be the empty array, expressed as {}.
Example:
public @interface Example {
Class<?>[] groups() default {};
}
I know I can use JDefinedClass#direct(String) to output raw code, but I would like to generate everything programatically.