Annotation Type SuppressForbidden


@Retention(CLASS) @Target({CONSTRUCTOR,FIELD,METHOD,TYPE}) public @interface SuppressForbidden
Default annotation to suppress forbidden-apis errors inside a whole class, a method, or a field. You can define your own annotation and pass a list of suppressing annotation types to the checker, this allows to use the feature without compile-time dependencies to forbidden-apis.