From 7a00b41e79e593ee47ba182446b231c4cd0a7067 Mon Sep 17 00:00:00 2001 From: ghm Date: Wed, 23 Oct 2024 05:53:20 -0700 Subject: [PATCH] `compileUnsafe` -> `compile` for compile-time-constant expressions. If they're safe, presumably they always will be. PiperOrigin-RevId: 688930253 --- .../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 168c5c6e4588..22754c10d465 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 =