Skip to content

Commit

Permalink
compileUnsafe -> compile for compile-time-constant expressions.
Browse files Browse the repository at this point in the history
If they're safe, presumably they always will be.

PiperOrigin-RevId: 688957020
  • Loading branch information
graememorgan authored and Error Prone Team committed Oct 23, 2024
1 parent 2ce9632 commit ec2983b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState

private static final Matcher<ExpressionTree> 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<Type> ENUM_LITE =
Expand Down

0 comments on commit ec2983b

Please sign in to comment.