Hi I am relatively new to JCodeModel. I have the follwoing annotation over my class
@JsonSubTypes({ @JsonSubTypes.Type(value = com.abc.MyClass.class, name = "MyClass")})
class MyClass {
}
How can I create Annotation for the following using JCodeModel. Thanks.
Just annotate your
JClass, and to add an array parameter, use theparamArray()method:Generates: