From ec2983b8b16bf3a4a2e8282c37f87db06eed8b3a Mon Sep 17 00:00:00 2001 From: ghm Date: Wed, 23 Oct 2024 07:33:34 -0700 Subject: [PATCH] `compileUnsafe` -> `compile` for compile-time-constant expressions. If they're safe, presumably they always will be. PiperOrigin-RevId: 688957020 --- .../java/com/google/errorprone/bugpatterns/SetUnrecognized.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/google/errorprone/bugpatterns/SetUnrecognized.java b/core/src/main/java/com/google/errorprone/bugpatterns/SetUnrecognized.java index 168c5c6e458..22754c10d46 100644 --- a/core/src/main/java/com/google/errorprone/bugpatterns/SetUnrecognized.java +++ b/core/src/main/java/com/google/errorprone/bugpatterns/SetUnrecognized.java @@ -64,7 +64,7 @@ public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState private static final Matcher IS_PROTO_SETTER = instanceMethod() - .onDescendantOfAny("com.google.protobuf.MessageLite.Builder") + .onDescendantOf("com.google.protobuf.MessageLite.Builder") .withNameMatching(Pattern.compile("(add|set).*")); private static final Supplier ENUM_LITE =