Class SuppressWarningsDeprecated

All Implemented Interfaces:
BugChecker.AnnotationTreeMatcher, Suppressible, Serializable

public class SuppressWarningsDeprecated
extends BugChecker
Find uses of SuppressWarnings with "deprecated".
Author: (Simon Nickerson)
See Also:
Serialized Form
  • Constructor Details

    • SuppressWarningsDeprecated

      public SuppressWarningsDeprecated()
  • Method Details

    • matchAnnotation

      public final Description matchAnnotation​(com.sun.source.tree.AnnotationTree annotationTree, VisitorState state)
    • processSuppressWarningsValues

      protected void processSuppressWarningsValues​(List<String> values)
      Processes the list of SuppressWarnings values in-place when creating a SuggestedFix. Items may be added, removed or re-ordered as necessary. The initial input are the values in the order specified in the code being processed.
      values - list of suppressed warnings in the order in which they appear in the code
    • getSuggestedFix

      protected final Fix getSuggestedFix​(com.sun.source.tree.AnnotationTree annotationTree)