phax / jcodemodel

A heavily extended fork of the com.sun.codemodel (from 2013/09)
Other
93 stars 34 forks source link

add no-param "value" for annotation. #64

Closed guiguilechat closed 5 years ago

guiguilechat commented 5 years ago

Hello.

When I annotate eg a field with an annotation. If this annotation accept one parameter which has name "value". I can use this annotation with @annotation(myvalue)

In JCM I need to specify a name in the annotation. However, if I specify "value" it generates the correct expected result. Could we have another function /** add a value to the default parameter of the annotation*/JAnnotationUse#param(String value){return param("value", value);}

I guess the issue is, that there are already many different methods for param(), eg with String, double, etc.

phax commented 5 years ago

Sure no problem. I will create an overload for all types.

phax commented 5 years ago

Contained in 3.2.0

guiguilechat commented 5 years ago

you can close automatically the issue by using eg "fixed #64" in the comment of your commit. I learnt that recently https://help.github.com/articles/closing-issues-using-keywords/