Class ProtoRules

java.lang.Object
com.google.errorprone.bugpatterns.checkreturnvalue.ProtoRules

public final class ProtoRules extends Object
Rules for methods on proto messages and builders.
  • Method Details

    • protoBuilders

      public static ResultUseRule<VisitorState,com.sun.tools.javac.code.Symbol> protoBuilders()
      Returns a rule that handles proto builders, making their fluent setter methods' results ignorable.
    • mutableProtos

      public static ResultUseRule<VisitorState,com.sun.tools.javac.code.Symbol> mutableProtos()
      Returns a rule that handles mutable protos, making their fluent setter methods' results ignorable.