Annotation Interface SuppressForbidden


@Retention(CLASS) @Target({CONSTRUCTOR,FIELD,METHOD,TYPE}) public @interface SuppressForbidden
This annotation exists to permit suppression in the Forbidden APIs check and also indicate to consumers of these classes that they may need to handle these differently in their production code.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The reason for suppressing the forbidden API check.
  • Element Details

    • reason

      String reason
      The reason for suppressing the forbidden API check.
      Returns:
      the reason