Class ProtoRules
java.lang.Object
com.google.errorprone.bugpatterns.checkreturnvalue.ProtoRules
Rules for methods on proto messages and builders.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResultUseRule
<VisitorState, com.sun.tools.javac.code.Symbol> Returns a rule that handles mutable protos, making their fluent setter methods' results ignorable.static ResultUseRule
<VisitorState, com.sun.tools.javac.code.Symbol> Returns a rule that handles proto builders, making their fluent setter methods' results ignorable.
-
Method Details
-
protoBuilders
Returns a rule that handles proto builders, making their fluent setter methods' results ignorable. -
mutableProtos
Returns a rule that handles mutable protos, making their fluent setter methods' results ignorable.
-