Annotation Type SuppressForbidden


  • @Retention(CLASS)
    @Target({CONSTRUCTOR,FIELD,METHOD,TYPE})
    public @interface SuppressForbidden
    Annotation to suppress forbidden-apis errors inside a whole class, a method, or a field.
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String reason
      A reason for suppressing should always be given.
    • Element Detail

      • reason

        String reason
        A reason for suppressing should always be given.