public class DeprecatedKeyChecker extends Object
PropertyKey
or
PropertyKey.Template
has a given annotation.
The class is mainly useful to check for Deprecated
annotations on property keys and
return the associated message, if any.Constructor and Description |
---|
DeprecatedKeyChecker()
Create a new instance of
DeprecatedKeyChecker . |
Modifier and Type | Method and Description |
---|---|
Deprecated |
getAnnotation(PropertyKey key)
Returns the annotation attached to the given property key.
|
boolean |
hasAnnotation(PropertyKey key)
Returns whether or not the given property key is marked by this class' annotation.
|
public DeprecatedKeyChecker()
DeprecatedKeyChecker
.public boolean hasAnnotation(PropertyKey key)
Deprecated
annotation.key
- the property key to checkDeprecated
,
PropertyKey.getDeprecationMessage(PropertyKey)
@Nullable public Deprecated getAnnotation(PropertyKey key)
key
- the key to get the annotation forCopyright © 2023. All Rights Reserved.