Class DeprecatedCheckerHelper
java.lang.Object
org.sonar.java.checks.helpers.DeprecatedCheckerHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationTreedeprecatedAnnotation(Tree tree) static <T> Optional<T> getAnnotationAttributeValue(AnnotationTree annotationTree, String attributeName, Class<T> valueType) static booleanhasJavadocDeprecatedTag(Tree tree) static Tree
-
Method Details
-
hasJavadocDeprecatedTag
-
deprecatedAnnotation
-
reportTreeForDeprecatedTree
-
getAnnotationAttributeValue
public static <T> Optional<T> getAnnotationAttributeValue(AnnotationTree annotationTree, String attributeName, Class<T> valueType) - Parameters:
annotationTree- The annotation tree to checkattributeName- The attribute name of the attribute to get the value for- Returns:
- an Optional containing the value of the attribute if found, otherwise an empty Optional
-