Annotation Interface Restricted


@Retention(RUNTIME) @Documented @Indexed public @interface Restricted
Indicates that a particular element is really deprecated and that the access to it is subject to the additional restrictions.

These annotations and restrictions introduced by them are enforced by the "access-modifier-checker" mojo.

Author:
Kohsuke Kawaguchi
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Kind of access that are restricted.
  • Element Details

    • value

      Class<? extends AccessRestriction>[] value
      Kind of access that are restricted. If multiple values are specified, those restrictions are OR-ed — thus if an use violates any of the restrictions, it'll be considered as an error.