From d173d855200e409c6e79791a610a521d6fe104ce Mon Sep 17 00:00:00 2001 From: ghm Date: Thu, 31 Oct 2024 15:48:17 -0700 Subject: [PATCH] Add a note to FloggerArgumentToString that Flogger handles arrays and such nicely. PiperOrigin-RevId: 691960142 --- .../bugpatterns/flogger/FloggerArgumentToString.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/google/errorprone/bugpatterns/flogger/FloggerArgumentToString.java b/core/src/main/java/com/google/errorprone/bugpatterns/flogger/FloggerArgumentToString.java index 62c00eb1b46..4389a3888ac 100644 --- a/core/src/main/java/com/google/errorprone/bugpatterns/flogger/FloggerArgumentToString.java +++ b/core/src/main/java/com/google/errorprone/bugpatterns/flogger/FloggerArgumentToString.java @@ -56,7 +56,8 @@ @BugPattern( summary = "Use Flogger's printf-style formatting instead of explicitly converting arguments to" - + " strings", + + " strings. Note that Flogger does more than just call toString; for instance, it" + + " formats arrays sensibly.", severity = WARNING) public class FloggerArgumentToString extends BugChecker implements MethodInvocationTreeMatcher {