Package org.kiwiproject.beta.annotation
Annotation Type AccessedViaReflection
-
@Documented @Target({METHOD,CONSTRUCTOR,FIELD}) @Retention(SOURCE) @Beta public @interface AccessedViaReflection
When placed on a method or constructor, indicates that the member is called via reflection, and is this used and should not be considered for removal. When placed on a field, indicates that the field is accesssed via reflection to get or set it.When this annotation is present, you might also consider adding
@SuppressWarnings("unused"). This is necessary sinceSuppressWarningsis notInheritedso we cannot include it in this annotation.
-
-
Element Detail
-
value
String value
Optional description of when, where, why, how this annotated element is accessed via reflection.While this value is optional, it is recommended, since it can be difficult to track down when and where reflective code invokes methods, constructors, etc.
- Default:
- ""
-
-