Annotation Type CheckReturnValue


@Documented @Target({METHOD,CONSTRUCTOR}) @Retention(CLASS) public @interface CheckReturnValue
This annotation is used to denote a method whose return value should always be checked when invoking the method. The checker treats this annotation as inherited by overriding methods.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    A textual explanation of why the return value should be checked
  • Element Details

    • confidence

      Confidence confidence
      Default:
      MEDIUM
    • explanation

      String explanation
      A textual explanation of why the return value should be checked
      Default:
      ""