Class PackageAnnotationCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable

    public class PackageAnnotationCheck
    extends AbstractCheck
    This check makes sure that all package annotations are in the package-info.java file.

    According to the Java Language Specification.

    The JLS does not enforce the placement of package annotations. This placement may vary based on implementation. The JLS does highly recommend that all package annotations are placed in the package-info.java file. See Java Language Specification, section 7.4.1.

    Author:
    Travis Schneeberger