diff --git a/pmd-java/src/main/resources/category/java/codestyle.xml b/pmd-java/src/main/resources/category/java/codestyle.xml index cb7728910f..43c3f47c9e 100644 --- a/pmd-java/src/main/resources/category/java/codestyle.xml +++ b/pmd-java/src/main/resources/category/java/codestyle.xml @@ -316,13 +316,13 @@ prefix for these methods. @@ -1647,7 +1647,7 @@ Method names that are very short are not helpful to the reader. diff --git a/pmd-java/src/main/resources/category/java/design.xml b/pmd-java/src/main/resources/category/java/design.xml index b65b33eb9a..84299f5da7 100644 --- a/pmd-java/src/main/resources/category/java/design.xml +++ b/pmd-java/src/main/resources/category/java/design.xml @@ -1557,11 +1557,11 @@ complexity and find a way to have more fine grained objects. something like this: not ( ( - starts-with(@Image,'get') + starts-with(@Name,'get') or - starts-with(@Image,'set') + starts-with(@Name,'set') or - starts-with(@Image,'is') + starts-with(@Name,'is') ) and ( ( @@ -1571,18 +1571,18 @@ complexity and find a way to have more fine grained objects. ) <= 3 ) ) - This will avoid discarding 'real' method... + This will avoid discarding 'real' methods... --> $maxmethods ] diff --git a/pmd-java/src/main/resources/category/java/errorprone.xml b/pmd-java/src/main/resources/category/java/errorprone.xml index 6e99ee509e..9c4d46287c 100644 --- a/pmd-java/src/main/resources/category/java/errorprone.xml +++ b/pmd-java/src/main/resources/category/java/errorprone.xml @@ -694,16 +694,16 @@ public String bar(String string) { @@ -937,8 +937,8 @@ Note: This is only possible with Java 1.5 or higher. @@ -978,8 +978,8 @@ The method clone() should throw a CloneNotSupportedException. @@ -1849,7 +1849,7 @@ If the finalize() is implemented, its last action should be to call super.finali 0]] +//MethodDeclaration[@Name='finalize'][@Arity > 0] ]]> @@ -1962,9 +1961,7 @@ Note that Oracle has declared Object.finalize() as deprecated since JDK 9. @@ -2126,11 +2123,11 @@ Some JUnit framework methods are easy to misspell.