From 5bff76b7ebc988013dbd7350f57efdbac28d8813 Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Thu, 4 Jan 2024 14:10:41 -0800 Subject: [PATCH] Deprecate withSignature PiperOrigin-RevId: 595799821 --- .../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 bfd3292072ca..5face8628f02 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); }