From 34141a87b12e8f5174058250337210e4da1bff76 Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Thu, 4 Jan 2024 14:49:06 -0800 Subject: [PATCH] Deprecate withSignature PiperOrigin-RevId: 595809096 --- .../google/errorprone/matchers/method/MethodMatchers.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/check_api/src/main/java/com/google/errorprone/matchers/method/MethodMatchers.java b/check_api/src/main/java/com/google/errorprone/matchers/method/MethodMatchers.java index bfd3292072c..5face8628f0 100644 --- a/check_api/src/main/java/com/google/errorprone/matchers/method/MethodMatchers.java +++ b/check_api/src/main/java/com/google/errorprone/matchers/method/MethodMatchers.java @@ -153,12 +153,14 @@ public interface MethodClassMatcher extends MethodMatcher { MethodNameMatcher withNameMatching(Pattern pattern); /** - * 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. + * Match methods with the given signature. * *

Example: {@code format(java.lang.String,java.lang.Object...)} + * + * @deprecated The implementation uses javac internals to pretty-print the signatures, and the + * signature format is not well-specified. */ + @Deprecated MethodSignatureMatcher withSignature(String signature); }