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: 652576976
  • Loading branch information
java-team-github-bot authored and Error Prone Team committed Jul 16, 2024
1 parent 96b4dff commit 8a83be1
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 8a83be1

Please sign in to comment.