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 =