Annotation Type DeprecatedSince
-
@Documented @Retention(RUNTIME) @Target({METHOD,FIELD,TYPE,CONSTRUCTOR}) public @interface DeprecatedSince
Annotation used to indicate since when an Object is deprecated.
This is always paired with the@Deprecated
annotation.A replacement may be mentioned with the
replacements String array
but is not guaranteed.
Anything annotated with this should be avoided as it may be removed in a future release.When a removal is planned will a
PlannedRemoval
annotation be added to indicate the version of the Object's removal.- Since:
- 3.2.0
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description int
major
The Major version since when the annotated object is deprecated.int
minor
The Minor version since when the annotated object is deprecated.int
patch
The Patch version since when the annotated object is deprecated.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String[]
replacements
Optional String array indicating one or multiple possible replacement Objects to use.
-
-
-
-
replacements
String[] replacements
Optional String array indicating one or multiple possible replacement Objects to use.- Returns:
- The Object(s) to use instead of the deprecated one.
- Default:
- {""}
-
-