Annotation Interface ReportUse


@Documented @Retention(RUNTIME) @Target({PACKAGE,TYPE}) public @interface ReportUse
Report all uses of a type that has this annotation. Can also be used on a package.

When written on a package, @ReportUse applies to that package and its subpackages by default. Set applyToSubpackages() to false to limit it to the package itself; doing so does not block an applicable @ReportUse on an enclosing package.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    When used on a package, whether this annotation should also apply to subpackages.
  • Element Details

    • applyToSubpackages

      boolean applyToSubpackages
      When used on a package, whether this annotation should also apply to subpackages.
      Returns:
      whether this annotation should be inherited by subpackages
      Default:
      true