Skip to content

Commit ec2983b

Browse files
graememorganError Prone Team
authored and
Error Prone Team
committed
compileUnsafe -> compile for compile-time-constant expressions.
If they're safe, presumably they always will be. PiperOrigin-RevId: 688957020
1 parent 2ce9632 commit ec2983b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/google/errorprone/bugpatterns/SetUnrecognized.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState
6464

6565
private static final Matcher<ExpressionTree> IS_PROTO_SETTER =
6666
instanceMethod()
67-
.onDescendantOfAny("com.google.protobuf.MessageLite.Builder")
67+
.onDescendantOf("com.google.protobuf.MessageLite.Builder")
6868
.withNameMatching(Pattern.compile("(add|set).*"));
6969

7070
private static final Supplier<Type> ENUM_LITE =

0 commit comments

Comments
 (0)