Enum UnusedReturnValueMatcher.AllowReason

java.lang.Object
java.lang.Enum<UnusedReturnValueMatcher.AllowReason>
com.google.errorprone.matchers.UnusedReturnValueMatcher.AllowReason
All Implemented Interfaces:
Serializable, Comparable<UnusedReturnValueMatcher.AllowReason>, java.lang.constant.Constable
Enclosing class:
UnusedReturnValueMatcher

public static enum UnusedReturnValueMatcher.AllowReason extends Enum<UnusedReturnValueMatcher.AllowReason>
Enumeration of known reasons that an unused return value may be allowed because of the context in which the method is used. Suppression is not considered here; these are reasons that don't have anything to do with specific checkers.
  • Enum Constant Details

  • Method Details

    • values

      public static UnusedReturnValueMatcher.AllowReason[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static UnusedReturnValueMatcher.AllowReason valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null