Skip to content

Commit d3fc5f3

Browse files
java-team-github-botError Prone Team
authored and
Error Prone Team
committed
Add the interface types for mutable protos so the object hierarchy can diverge as it converges with Immutable Builders.
This should have zero impact because `AbstractMutableMessageLite implements MutableMessageLite`. #checkreturnvalue PiperOrigin-RevId: 652856389
1 parent 96b4dff commit d3fc5f3

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/java/com/google/errorprone/bugpatterns/checkreturnvalue

1 file changed

+1
-1
lines changed

core/src/main/java/com/google/errorprone/bugpatterns/checkreturnvalue/ProtoRules.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static ResultUseRule<VisitorState, Symbol> protoBuilders() {
5050
*/
5151
public static ResultUseRule<VisitorState, Symbol> mutableProtos() {
5252
return new ProtoRule(
53-
isDescendantOfAny(ImmutableSet.of("com.google.protobuf.AbstractMutableMessageLite")),
53+
isDescendantOfAny(ImmutableSet.of("com.google.protobuf.MutableMessageLite")),
5454
"MUTABLE_PROTO");
5555
}
5656

0 commit comments

Comments
 (0)