Skip to content

Commit

Permalink
Add the interface types for mutable protos so the object hierarchy ca…
Browse files Browse the repository at this point in the history
…n diverge as it converges with Immutable Builders.

This should have zero impact because `AbstractMutableMessageLite implements MutableMessageLite`.

#checkreturnvalue

PiperOrigin-RevId: 652856389
  • Loading branch information
java-team-github-bot authored and Error Prone Team committed Jul 16, 2024
1 parent 96b4dff commit d3fc5f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static ResultUseRule<VisitorState, Symbol> protoBuilders() {
*/
public static ResultUseRule<VisitorState, Symbol> mutableProtos() {
return new ProtoRule(
isDescendantOfAny(ImmutableSet.of("com.google.protobuf.AbstractMutableMessageLite")),
isDescendantOfAny(ImmutableSet.of("com.google.protobuf.MutableMessageLite")),
"MUTABLE_PROTO");
}

Expand Down

0 comments on commit d3fc5f3

Please sign in to comment.