0

I want to get something like this:

public @interface Unfinished {
  String value();
   String value() default "someVal";
}

The problem is I cannot use JFieldVar because it looks like this:

String value; //no parentheses 
String value = "someVal"; //no parentheses, no "default", "=" sign
aderesh
  • 927
  • 10
  • 22

1 Answers1

1

One possible way is to use jDefinedClass.direct:

annotationClass.direct("String value();")
annotationClass.direct("String value() default \"someVal\";")

But I don't like this approach. I'd to use something similar to JFielVar.

aderesh
  • 927
  • 10
  • 22