diff --git a/api/latest/com/google/errorprone/matchers/method/MethodMatchers.MethodClassMatcher.html b/api/latest/com/google/errorprone/matchers/method/MethodMatchers.MethodClassMatcher.html index 1d60ea226c1..d42a5540413 100644 --- a/api/latest/com/google/errorprone/matchers/method/MethodMatchers.MethodClassMatcher.html +++ b/api/latest/com/google/errorprone/matchers/method/MethodMatchers.MethodClassMatcher.html @@ -135,8 +135,10 @@

Method Summary

MethodMatchers.MethodSignatureMatcher
withSignature(String signature)
-
Deprecated.
-
Match methods with the given signature.
+
Deprecated. +
The implementation uses javac internals to pretty-print the signatures, and the + signature format is not well-specified.
+
@@ -198,11 +200,13 @@

withNameMatching

  • withSignature

    - -
    Deprecated.
    -
    Match methods with the given signature. The implementation uses javac internals to - pretty-print the signatures, and the signature format is not well-specified. This matcher - should be used with caution. + +
    Deprecated. +
    The implementation uses javac internals to pretty-print the signatures, and the + signature format is not well-specified.
    +
    +
    Match methods with the given signature.

    Example: format(java.lang.String,java.lang.Object...)

    diff --git a/api/latest/com/google/errorprone/matchers/method/class-use/MethodMatchers.MethodSignatureMatcher.html b/api/latest/com/google/errorprone/matchers/method/class-use/MethodMatchers.MethodSignatureMatcher.html index 8728b0cdb62..d735756cdeb 100644 --- a/api/latest/com/google/errorprone/matchers/method/class-use/MethodMatchers.MethodSignatureMatcher.html +++ b/api/latest/com/google/errorprone/matchers/method/class-use/MethodMatchers.MethodSignatureMatcher.html @@ -71,8 +71,10 @@

    Uses of MethodMatchers.MethodSignatureMatcher
    MethodMatchers.MethodClassMatcher.withSignature(String signature)
    -
    Deprecated.
    -
    Match methods with the given signature.
    +
    Deprecated. +
    The implementation uses javac internals to pretty-print the signatures, and the + signature format is not well-specified.
    +
    diff --git a/api/latest/deprecated-list.html b/api/latest/deprecated-list.html index 24c0e8065f8..13076fabc32 100644 --- a/api/latest/deprecated-list.html +++ b/api/latest/deprecated-list.html @@ -194,8 +194,13 @@

    Contents

    -
    com.google.errorprone.util.ASTHelpers.getAnnotation(Tree, Class<T>)
    +
    com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher.withSignature(String)
    +
    The implementation uses javac internals to pretty-print the signatures, and the + signature format is not well-specified.
    +
    +
    com.google.errorprone.util.ASTHelpers.getAnnotation(Tree, Class<T>)
    +
    If annotationClass contains a member that is a Class or an array of them, attempting to access that member from the Error Prone checker code will result in a runtime exception. Instead, operate on getSymbol(tree).getAnnotationMirrors() to @@ -206,27 +211,27 @@

    Contents

    ASTHelpers.getAnnotations(com.sun.source.tree.Tree) (or a direct call to a getAnnotations method declared on a specific Tree subclass) instead.
    -
    com.google.errorprone.util.ASTHelpers.getAnnotation(Symbol, Class<T>)
    -
    + +
    If annotationClass contains a member that is a Class or an array of them, attempting to access that member from the Error Prone checker code will result in a runtime exception. Instead, operate on sym.getAnnotationMirrors() to meta-syntactically inspect the annotation.
    - -
    + +
    prefer ASTHelpers.hasAnnotation(Symbol, String, VisitorState) to avoid needing a runtime dependency on the annotation class, and to prevent issues if there is skew between the definition of the annotation on the runtime and compile-time classpaths
    - -
    + +
    prefer ASTHelpers.hasAnnotation(Symbol, String, VisitorState) to avoid needing a runtime dependency on the annotation class, and to prevent issues if there is skew between the definition of the annotation on the runtime and compile-time classpaths
    - - diff --git a/api/latest/index-all.html b/api/latest/index-all.html index aacdde7e70d..ea53a615c12 100644 --- a/api/latest/index-all.html +++ b/api/latest/index-all.html @@ -14734,8 +14734,10 @@

    W

     
    withSignature(String) - Method in interface com.google.errorprone.matchers.method.MethodMatchers.MethodClassMatcher
    -
    Deprecated.
    -
    Match methods with the given signature.
    +
    Deprecated. +
    The implementation uses javac internals to pretty-print the signatures, and the + signature format is not well-specified.
    +
    WithSignatureDiscouraged - Class in com.google.errorprone.bugpatterns