Is there any way to pass annotation arguments like this :
@MyAnnotation(4)
instead of
@MyAnnotation( value = 4)
yes if you define the annotation with reference name value
@interface MyAnno{
String value();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With