From ee2d03a733d8d33b43c9dfc82cb6c93030f26226 Mon Sep 17 00:00:00 2001 From: "Travis CI (pmd-bot)" Date: Sat, 13 Apr 2019 18:27:25 +0000 Subject: [PATCH] Update documentation TRAVIS_JOB_NUMBER=3653.1 TRAVIS_COMMIT_RANGE=94545b6049c1...893119515677 --- docs/pages/pmd/rules/java/codestyle.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/pmd/rules/java/codestyle.md b/docs/pages/pmd/rules/java/codestyle.md index 1e267004bc..88aab345da 100644 --- a/docs/pages/pmd/rules/java/codestyle.md +++ b/docs/pages/pmd/rules/java/codestyle.md @@ -1693,7 +1693,7 @@ Detects when a class or interface does not have a package definition. **This rule is defined by the following XPath expression:** ``` xpath -//ClassOrInterfaceDeclaration[count(preceding::PackageDeclaration) = 0] +/CompilationUnit[not(./PackageDeclaration)]/TypeDeclaration[1] ``` **Example(s):**