diff --git a/docs/pages/pmd/rules/java.md b/docs/pages/pmd/rules/java.md index 516e0ddd7a..964dc77003 100644 --- a/docs/pages/pmd/rules/java.md +++ b/docs/pages/pmd/rules/java.md @@ -115,7 +115,7 @@ folder: pmd/rules * [UnnecessaryModifier](pmd_rules_java_codestyle.html#unnecessarymodifier): Fields in interfaces and annotations are automatically 'public static final', and methods are 'pu... * [UnnecessaryReturn](pmd_rules_java_codestyle.html#unnecessaryreturn): Avoid the use of unnecessary return statements. * [UselessParentheses](pmd_rules_java_codestyle.html#uselessparentheses): Useless parentheses should be removed. -* [UselessQualifiedThis](pmd_rules_java_codestyle.html#uselessqualifiedthis): Look for qualified this usages in the same class. +* [UselessQualifiedThis](pmd_rules_java_codestyle.html#uselessqualifiedthis): Reports qualified this usages in the same class. * [VariableNamingConventions](pmd_rules_java_codestyle.html#variablenamingconventions): Deprecated A variable naming conventions rule - customize this to your liking. Currently, itchecks for fina... * [WhileLoopsMustUseBraces](pmd_rules_java_codestyle.html#whileloopsmustusebraces): Deprecated Avoid using 'while' statements without using braces to surround the code block. If the code forma... diff --git a/docs/pages/pmd/rules/java/codestyle.md b/docs/pages/pmd/rules/java/codestyle.md index a0e6b3f94f..af3fa16918 100644 --- a/docs/pages/pmd/rules/java/codestyle.md +++ b/docs/pages/pmd/rules/java/codestyle.md @@ -2157,13 +2157,13 @@ public class Foo { **Priority:** Medium (3) -Look for qualified this usages in the same class. +Reports qualified this usages in the same class. **This rule is defined by the following XPath expression:** ``` xpath //PrimaryExpression [PrimaryPrefix/Name[@Image]] -[PrimarySuffix[@Arguments='false']] +[PrimarySuffix[@Arguments='false' and @ArrayDereference = 'false']] [not(PrimarySuffix/MemberSelector)] [ancestor::ClassOrInterfaceBodyDeclaration[1][@AnonymousInnerClass='false']] /PrimaryPrefix/Name[@Image = ancestor::ClassOrInterfaceDeclaration[1]/@Image]