
resources.report.rules.pmd.NoPackage.html Maven / Gradle / Ivy
NoPackage
NoPackage
Detects when a class or interface does not have a package definition.
This rule is defined by the following XPath expression:
//ClassOrInterfaceDeclaration[count(preceding::PackageDeclaration) = 0]
Example:
// no package declaration
public class ClassInDefaultPackage {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy