-
Methods Method Description com.google.errorprone.ErrorProneError.logFatalError(Log) com.google.errorprone.util.ASTHelpers.getAnnotation(Tree, Class<T>) IfannotationClasscontains a member that is aClassor an array of them, attempting to access that member from the Error Prone checker code will result in a runtime exception. Instead, operate onsym.getAnnotationMirrors()to meta-syntactically inspect the annotation.com.google.errorprone.util.ASTHelpers.getAnnotation(Symbol, Class<T>) IfannotationClasscontains a member that is aClassor an array of them, attempting to access that member from the Error Prone checker code will result in a runtime exception. Instead, operate onsym.getAnnotationMirrors()to meta-syntactically inspect the annotation.com.google.errorprone.util.MoreAnnotations.asStrings(Attribute) Continues to exist only to allow migration to widerMoreAnnotations.asStrings(AnnotationValue)for targets which have this symbol compiled in. Please invoke that target, with an explicit cast if necessary.
-
Constructors Constructor Description com.google.errorprone.VisitorState(Context) If VisitorState is needed, useVisitorState.createForUtilityPurposes(com.sun.tools.javac.util.Context), otherwise just use utility methods in ASTHelpers that don't need VisitorSate.com.google.errorprone.VisitorState(Context, DescriptionListener) Use the equivalent factory methodVisitorState.createForCustomFindingCollection(com.sun.tools.javac.util.Context, com.google.errorprone.DescriptionListener).com.google.errorprone.VisitorState(Context, DescriptionListener, Map<String, BugPattern.SeverityLevel>, ErrorProneOptions)
Matcher<ExpressionTree>instead of referring directly to this type.