From 308173a0fcacd365c83b891ad2aac4c1b853a211 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 13 Jan 2022 17:16:07 +0100 Subject: [PATCH 1/5] [core] Handle quotes correctly in designer.bat and other *.bat files Fixes #3328 --- docs/pages/release_notes.md | 2 ++ pmd-dist/src/main/resources/scripts/ast-dump.bat | 4 ++-- pmd-dist/src/main/resources/scripts/bgastviewer.bat | 4 ++-- pmd-dist/src/main/resources/scripts/cpd.bat | 4 ++-- pmd-dist/src/main/resources/scripts/cpdgui.bat | 4 ++-- pmd-dist/src/main/resources/scripts/designer.bat | 8 ++++---- pmd-dist/src/main/resources/scripts/designerold.bat | 4 ++-- pmd-dist/src/main/resources/scripts/pmd.bat | 4 ++-- 8 files changed, 18 insertions(+), 16 deletions(-) diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index 953a3a05e1..479b9fc79e 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -22,6 +22,8 @@ This is a {{ site.pmd.release_type }} release. ### Fixed Issues +* core + * [#3328](https://github.com/pmd/pmd/issues/3328): \[core] designer.bat errors when JAVAFX_HOME contains spaces * java-bestpractices * [#3209](https://github.com/pmd/pmd/issues/3209): \[java] UnusedPrivateMethod false positive with static method and cast expression * [#3468](https://github.com/pmd/pmd/issues/3468): \[java] UnusedPrivateMethod false positive when outer class calls private static method on inner class diff --git a/pmd-dist/src/main/resources/scripts/ast-dump.bat b/pmd-dist/src/main/resources/scripts/ast-dump.bat index e0cc6edf2f..232a07590f 100644 --- a/pmd-dist/src/main/resources/scripts/ast-dump.bat +++ b/pmd-dist/src/main/resources/scripts/ast-dump.bat @@ -1,6 +1,6 @@ @echo off -set TOPDIR=%~dp0.. +set TOPDIR="%~dp0.." set OPTS= set MAIN_CLASS=net.sourceforge.pmd.util.treeexport.TreeExportCli -java %PMD_JAVA_OPTS% -classpath "%TOPDIR%\lib\*" %OPTS% %MAIN_CLASS% %* +java %PMD_JAVA_OPTS% -classpath %TOPDIR%\lib\* %OPTS% %MAIN_CLASS% %* diff --git a/pmd-dist/src/main/resources/scripts/bgastviewer.bat b/pmd-dist/src/main/resources/scripts/bgastviewer.bat index 56f460db48..00dea3c01a 100644 --- a/pmd-dist/src/main/resources/scripts/bgastviewer.bat +++ b/pmd-dist/src/main/resources/scripts/bgastviewer.bat @@ -1,6 +1,6 @@ @echo off -set TOPDIR=%~dp0.. +set TOPDIR="%~dp0.." set OPTS= set MAIN_CLASS=net.sourceforge.pmd.util.viewer.Viewer -java %PMD_JAVA_OPTS% -classpath "%TOPDIR%\lib\*" %OPTS% %MAIN_CLASS% %* +java %PMD_JAVA_OPTS% -classpath %TOPDIR%\lib\* %OPTS% %MAIN_CLASS% %* diff --git a/pmd-dist/src/main/resources/scripts/cpd.bat b/pmd-dist/src/main/resources/scripts/cpd.bat index dbdda1876a..5731fa1089 100644 --- a/pmd-dist/src/main/resources/scripts/cpd.bat +++ b/pmd-dist/src/main/resources/scripts/cpd.bat @@ -1,6 +1,6 @@ @echo off -set TOPDIR=%~dp0.. +set TOPDIR="%~dp0.." set OPTS= set MAIN_CLASS=net.sourceforge.pmd.cpd.CPD -java %PMD_JAVA_OPTS% -classpath "%TOPDIR%\lib\*" %OPTS% %MAIN_CLASS% %* +java %PMD_JAVA_OPTS% -classpath %TOPDIR%\lib\* %OPTS% %MAIN_CLASS% %* diff --git a/pmd-dist/src/main/resources/scripts/cpdgui.bat b/pmd-dist/src/main/resources/scripts/cpdgui.bat index 38ce3ffba5..526dbba46a 100755 --- a/pmd-dist/src/main/resources/scripts/cpdgui.bat +++ b/pmd-dist/src/main/resources/scripts/cpdgui.bat @@ -1,6 +1,6 @@ @echo off -set TOPDIR=%~dp0.. +set TOPDIR="%~dp0.." set OPTS= set MAIN_CLASS=net.sourceforge.pmd.cpd.GUI -java %PMD_JAVA_OPTS% -classpath "%TOPDIR%\lib\*" %OPTS% %MAIN_CLASS% %* +java %PMD_JAVA_OPTS% -classpath %TOPDIR%\lib\* %OPTS% %MAIN_CLASS% %* diff --git a/pmd-dist/src/main/resources/scripts/designer.bat b/pmd-dist/src/main/resources/scripts/designer.bat index b33e9af195..bc3cbb9188 100644 --- a/pmd-dist/src/main/resources/scripts/designer.bat +++ b/pmd-dist/src/main/resources/scripts/designer.bat @@ -1,5 +1,5 @@ @echo off -set TOPDIR=%~dp0.. +set TOPDIR="%~dp0.." set OPTS= set MAIN_CLASS=net.sourceforge.pmd.util.fxdesigner.DesignerStarter @@ -42,10 +42,10 @@ if %_needjfxlib% EQU 1 ( pause exit ) - set "classpath=%TOPDIR%\lib\*;%JAVAFX_HOME%\lib\*" + set classpath=%TOPDIR%\lib\*;%JAVAFX_HOME%\lib\* ) else ( - set "classpath=%TOPDIR%\lib\*" + set classpath=%TOPDIR%\lib\* ) -java %PMD_JAVA_OPTS% %jreopts% -classpath "%classpath%" %OPTS% %MAIN_CLASS% %* +java %PMD_JAVA_OPTS% %jreopts% -classpath %classpath% %OPTS% %MAIN_CLASS% %* diff --git a/pmd-dist/src/main/resources/scripts/designerold.bat b/pmd-dist/src/main/resources/scripts/designerold.bat index d41f262202..de42c37f80 100644 --- a/pmd-dist/src/main/resources/scripts/designerold.bat +++ b/pmd-dist/src/main/resources/scripts/designerold.bat @@ -1,6 +1,6 @@ @echo off -set TOPDIR=%~dp0.. +set TOPDIR="%~dp0.." set OPTS= set MAIN_CLASS=net.sourceforge.pmd.util.designer.Designer -java %PMD_JAVA_OPTS% -classpath "%TOPDIR%\lib\*" %OPTS% %MAIN_CLASS% %* +java %PMD_JAVA_OPTS% -classpath %TOPDIR%\lib\* %OPTS% %MAIN_CLASS% %* diff --git a/pmd-dist/src/main/resources/scripts/pmd.bat b/pmd-dist/src/main/resources/scripts/pmd.bat index 0a5d79e129..b3b2c78699 100755 --- a/pmd-dist/src/main/resources/scripts/pmd.bat +++ b/pmd-dist/src/main/resources/scripts/pmd.bat @@ -1,6 +1,6 @@ @echo off -set TOPDIR=%~dp0.. +set TOPDIR="%~dp0.." set OPTS= set MAIN_CLASS=net.sourceforge.pmd.PMD -java %PMD_JAVA_OPTS% -classpath "%TOPDIR%\lib\*" %OPTS% %MAIN_CLASS% %* +java %PMD_JAVA_OPTS% -classpath %TOPDIR%\lib\* %OPTS% %MAIN_CLASS% %* From 2d6a1496591c3435850f4ff094d4571c41ba787d Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 29 Jan 2022 09:42:23 +0100 Subject: [PATCH 2/5] Prepare pmd release 6.42.0 --- docs/_config.yml | 2 +- docs/pages/next_major_development.md | 4 ++++ docs/pages/release_notes.md | 7 +++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/_config.yml b/docs/_config.yml index bd54fe8219..28095388a5 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,7 +1,7 @@ repository: pmd/pmd pmd: - version: 6.42.0-SNAPSHOT + version: 6.42.0 previous_version: 6.41.0 date: 29-January-2022 release_type: minor diff --git a/docs/pages/next_major_development.md b/docs/pages/next_major_development.md index 719775b55a..dea9ba7d8f 100644 --- a/docs/pages/next_major_development.md +++ b/docs/pages/next_major_development.md @@ -125,6 +125,10 @@ the breaking API changes will be performed in 7.0.0. an API is tagged as `@Deprecated` or not in the latest minor release. During the development of 7.0.0, we may decide to remove some APIs that were not tagged as deprecated, though we'll try to avoid it." %} +#### 6.42.0 + +No changes. + #### 6.41.0 ##### Command Line Interface diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index 396dfe082d..810f0edcb8 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -64,6 +64,8 @@ not support all features of the latest EcmaScript standard. ### API Changes +No changes. + ### External Contributions * [#3631](https://github.com/pmd/pmd/pull/3631): \[java] Fixed False positive for UselessStringValueOf when there is no initial String to append to - [John Armgardt](https://github.com/johnra2) @@ -81,5 +83,10 @@ not support all features of the latest EcmaScript standard. * [#3745](https://github.com/pmd/pmd/pull/3745): \[java] Fix #3712: InsufficientStringBufferDeclaration setLength false positive - [Daniel Gredler](https://github.com/gredler) * [#3747](https://github.com/pmd/pmd/pull/3747): \[visualforce] Updated DataType.java - [Vyom Yadav](https://github.com/Vyom-Yadav) +### Stats +* 88 commits +* 35 closed tickets & PRs +* Days since last release: 62 + {% endtocmaker %} From 391c32589fce747ee786f92b0881d6d714737cef Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 29 Jan 2022 09:53:32 +0100 Subject: [PATCH 3/5] [maven-release-plugin] prepare release pmd_releases/6.42.0 --- pmd-apex-jorje/pom.xml | 2 +- pmd-apex/pom.xml | 2 +- pmd-core/pom.xml | 2 +- pmd-cpp/pom.xml | 2 +- pmd-cs/pom.xml | 2 +- pmd-dart/pom.xml | 2 +- pmd-dist/pom.xml | 2 +- pmd-doc/pom.xml | 2 +- pmd-fortran/pom.xml | 2 +- pmd-go/pom.xml | 2 +- pmd-groovy/pom.xml | 2 +- pmd-java/pom.xml | 2 +- pmd-java8/pom.xml | 2 +- pmd-javascript/pom.xml | 2 +- pmd-jsp/pom.xml | 2 +- pmd-kotlin/pom.xml | 2 +- pmd-lang-test/pom.xml | 2 +- pmd-lua/pom.xml | 2 +- pmd-matlab/pom.xml | 2 +- pmd-modelica/pom.xml | 2 +- pmd-objectivec/pom.xml | 2 +- pmd-perl/pom.xml | 2 +- pmd-php/pom.xml | 2 +- pmd-plsql/pom.xml | 2 +- pmd-python/pom.xml | 2 +- pmd-ruby/pom.xml | 2 +- pmd-scala-modules/pmd-scala-common/pom.xml | 2 +- pmd-scala-modules/pmd-scala_2.12/pom.xml | 2 +- pmd-scala-modules/pmd-scala_2.13/pom.xml | 2 +- pmd-scala/pom.xml | 2 +- pmd-swift/pom.xml | 2 +- pmd-test/pom.xml | 2 +- pmd-visualforce/pom.xml | 2 +- pmd-vm/pom.xml | 2 +- pmd-xml/pom.xml | 2 +- pom.xml | 6 +++--- 36 files changed, 38 insertions(+), 38 deletions(-) diff --git a/pmd-apex-jorje/pom.xml b/pmd-apex-jorje/pom.xml index 2c732c46dd..7b876af285 100644 --- a/pmd-apex-jorje/pom.xml +++ b/pmd-apex-jorje/pom.xml @@ -8,7 +8,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-apex/pom.xml b/pmd-apex/pom.xml index ef1dc455d0..707f677bad 100644 --- a/pmd-apex/pom.xml +++ b/pmd-apex/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-core/pom.xml b/pmd-core/pom.xml index 0cece6914f..156624451b 100644 --- a/pmd-core/pom.xml +++ b/pmd-core/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-cpp/pom.xml b/pmd-cpp/pom.xml index f4ada09b70..b08c99a6d3 100644 --- a/pmd-cpp/pom.xml +++ b/pmd-cpp/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-cs/pom.xml b/pmd-cs/pom.xml index aab298eeb2..04aab3a394 100644 --- a/pmd-cs/pom.xml +++ b/pmd-cs/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-dart/pom.xml b/pmd-dart/pom.xml index f19b9da762..b188ee1b2c 100644 --- a/pmd-dart/pom.xml +++ b/pmd-dart/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-dist/pom.xml b/pmd-dist/pom.xml index d6f67b7321..97ce623583 100644 --- a/pmd-dist/pom.xml +++ b/pmd-dist/pom.xml @@ -8,7 +8,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-doc/pom.xml b/pmd-doc/pom.xml index 525890a786..441d875996 100644 --- a/pmd-doc/pom.xml +++ b/pmd-doc/pom.xml @@ -8,7 +8,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-fortran/pom.xml b/pmd-fortran/pom.xml index 1aa1cd7aba..b3cf3c3264 100644 --- a/pmd-fortran/pom.xml +++ b/pmd-fortran/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-go/pom.xml b/pmd-go/pom.xml index a4e0b3ef65..a5031bae0b 100644 --- a/pmd-go/pom.xml +++ b/pmd-go/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-groovy/pom.xml b/pmd-groovy/pom.xml index fb3474b651..76debe812b 100644 --- a/pmd-groovy/pom.xml +++ b/pmd-groovy/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-java/pom.xml b/pmd-java/pom.xml index 05d7dc05cb..a8578094b4 100644 --- a/pmd-java/pom.xml +++ b/pmd-java/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-java8/pom.xml b/pmd-java8/pom.xml index 155af52b33..ddbc18724e 100644 --- a/pmd-java8/pom.xml +++ b/pmd-java8/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-javascript/pom.xml b/pmd-javascript/pom.xml index 717ec67cbf..a5946cb70d 100644 --- a/pmd-javascript/pom.xml +++ b/pmd-javascript/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-jsp/pom.xml b/pmd-jsp/pom.xml index af8c0769e8..c0b0d7044d 100644 --- a/pmd-jsp/pom.xml +++ b/pmd-jsp/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-kotlin/pom.xml b/pmd-kotlin/pom.xml index c43f939fb3..6530328d08 100644 --- a/pmd-kotlin/pom.xml +++ b/pmd-kotlin/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-lang-test/pom.xml b/pmd-lang-test/pom.xml index 4048249db5..02b70eb3f4 100644 --- a/pmd-lang-test/pom.xml +++ b/pmd-lang-test/pom.xml @@ -12,7 +12,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-lua/pom.xml b/pmd-lua/pom.xml index 6fd499cfd6..ac422b72e5 100644 --- a/pmd-lua/pom.xml +++ b/pmd-lua/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-matlab/pom.xml b/pmd-matlab/pom.xml index 9d88adca68..a26449e7e7 100644 --- a/pmd-matlab/pom.xml +++ b/pmd-matlab/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-modelica/pom.xml b/pmd-modelica/pom.xml index 2df547f701..348c9f4512 100644 --- a/pmd-modelica/pom.xml +++ b/pmd-modelica/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-objectivec/pom.xml b/pmd-objectivec/pom.xml index feb1bf3a43..daab5708db 100644 --- a/pmd-objectivec/pom.xml +++ b/pmd-objectivec/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-perl/pom.xml b/pmd-perl/pom.xml index 8c0d1e8252..e52d43eac9 100644 --- a/pmd-perl/pom.xml +++ b/pmd-perl/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-php/pom.xml b/pmd-php/pom.xml index d9f299bdff..574dfdb717 100644 --- a/pmd-php/pom.xml +++ b/pmd-php/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-plsql/pom.xml b/pmd-plsql/pom.xml index 015d0b7aef..7c611bf612 100644 --- a/pmd-plsql/pom.xml +++ b/pmd-plsql/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-python/pom.xml b/pmd-python/pom.xml index bf3576e146..4117db3f60 100644 --- a/pmd-python/pom.xml +++ b/pmd-python/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-ruby/pom.xml b/pmd-ruby/pom.xml index fca0c70a66..072cdeeaf2 100644 --- a/pmd-ruby/pom.xml +++ b/pmd-ruby/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-scala-modules/pmd-scala-common/pom.xml b/pmd-scala-modules/pmd-scala-common/pom.xml index 6883a43a11..47f2f5528f 100644 --- a/pmd-scala-modules/pmd-scala-common/pom.xml +++ b/pmd-scala-modules/pmd-scala-common/pom.xml @@ -8,7 +8,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../.. diff --git a/pmd-scala-modules/pmd-scala_2.12/pom.xml b/pmd-scala-modules/pmd-scala_2.12/pom.xml index b7f443c950..f14a729611 100644 --- a/pmd-scala-modules/pmd-scala_2.12/pom.xml +++ b/pmd-scala-modules/pmd-scala_2.12/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd-scala-common - 6.42.0-SNAPSHOT + 6.42.0 ../pmd-scala-common diff --git a/pmd-scala-modules/pmd-scala_2.13/pom.xml b/pmd-scala-modules/pmd-scala_2.13/pom.xml index 13c8eb17b7..d39ba1356a 100644 --- a/pmd-scala-modules/pmd-scala_2.13/pom.xml +++ b/pmd-scala-modules/pmd-scala_2.13/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd-scala-common - 6.42.0-SNAPSHOT + 6.42.0 ../pmd-scala-common diff --git a/pmd-scala/pom.xml b/pmd-scala/pom.xml index de19cd5b35..e601da1604 100644 --- a/pmd-scala/pom.xml +++ b/pmd-scala/pom.xml @@ -9,7 +9,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-swift/pom.xml b/pmd-swift/pom.xml index 68204af341..e623288af3 100644 --- a/pmd-swift/pom.xml +++ b/pmd-swift/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-test/pom.xml b/pmd-test/pom.xml index b4b8f435d1..f9886cc8ef 100644 --- a/pmd-test/pom.xml +++ b/pmd-test/pom.xml @@ -8,7 +8,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-visualforce/pom.xml b/pmd-visualforce/pom.xml index 33fdcd50ae..b3ac454e06 100644 --- a/pmd-visualforce/pom.xml +++ b/pmd-visualforce/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-vm/pom.xml b/pmd-vm/pom.xml index 13a217280e..69ae6ba854 100644 --- a/pmd-vm/pom.xml +++ b/pmd-vm/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pmd-xml/pom.xml b/pmd-xml/pom.xml index 739e033315..6740318e9a 100644 --- a/pmd-xml/pom.xml +++ b/pmd-xml/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 ../ diff --git a/pom.xml b/pom.xml index 6d2b604d31..d0c60adf07 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 net.sourceforge.pmd pmd - 6.42.0-SNAPSHOT + 6.42.0 pom PMD @@ -55,7 +55,7 @@ scm:git:git://github.com/pmd/pmd.git scm:git:ssh://git@github.com/pmd/pmd.git https://github.com/pmd/pmd - HEAD + pmd_releases/6.42.0 @@ -76,7 +76,7 @@ - 2021-11-27T10:21:16Z + 2022-01-29T08:42:50Z 7 From dc19597020b93e48ea27d606d5273f422103f34b Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 29 Jan 2022 09:53:38 +0100 Subject: [PATCH 4/5] [maven-release-plugin] prepare for next development iteration --- pmd-apex-jorje/pom.xml | 2 +- pmd-apex/pom.xml | 2 +- pmd-core/pom.xml | 2 +- pmd-cpp/pom.xml | 2 +- pmd-cs/pom.xml | 2 +- pmd-dart/pom.xml | 2 +- pmd-dist/pom.xml | 2 +- pmd-doc/pom.xml | 2 +- pmd-fortran/pom.xml | 2 +- pmd-go/pom.xml | 2 +- pmd-groovy/pom.xml | 2 +- pmd-java/pom.xml | 2 +- pmd-java8/pom.xml | 2 +- pmd-javascript/pom.xml | 2 +- pmd-jsp/pom.xml | 2 +- pmd-kotlin/pom.xml | 2 +- pmd-lang-test/pom.xml | 2 +- pmd-lua/pom.xml | 2 +- pmd-matlab/pom.xml | 2 +- pmd-modelica/pom.xml | 2 +- pmd-objectivec/pom.xml | 2 +- pmd-perl/pom.xml | 2 +- pmd-php/pom.xml | 2 +- pmd-plsql/pom.xml | 2 +- pmd-python/pom.xml | 2 +- pmd-ruby/pom.xml | 2 +- pmd-scala-modules/pmd-scala-common/pom.xml | 2 +- pmd-scala-modules/pmd-scala_2.12/pom.xml | 2 +- pmd-scala-modules/pmd-scala_2.13/pom.xml | 2 +- pmd-scala/pom.xml | 2 +- pmd-swift/pom.xml | 2 +- pmd-test/pom.xml | 2 +- pmd-visualforce/pom.xml | 2 +- pmd-vm/pom.xml | 2 +- pmd-xml/pom.xml | 2 +- pom.xml | 6 +++--- 36 files changed, 38 insertions(+), 38 deletions(-) diff --git a/pmd-apex-jorje/pom.xml b/pmd-apex-jorje/pom.xml index 7b876af285..6e267ffd68 100644 --- a/pmd-apex-jorje/pom.xml +++ b/pmd-apex-jorje/pom.xml @@ -8,7 +8,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-apex/pom.xml b/pmd-apex/pom.xml index 707f677bad..455bd5164e 100644 --- a/pmd-apex/pom.xml +++ b/pmd-apex/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-core/pom.xml b/pmd-core/pom.xml index 156624451b..b5b8932865 100644 --- a/pmd-core/pom.xml +++ b/pmd-core/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-cpp/pom.xml b/pmd-cpp/pom.xml index b08c99a6d3..67d5fcbfd6 100644 --- a/pmd-cpp/pom.xml +++ b/pmd-cpp/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-cs/pom.xml b/pmd-cs/pom.xml index 04aab3a394..26c24cc363 100644 --- a/pmd-cs/pom.xml +++ b/pmd-cs/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-dart/pom.xml b/pmd-dart/pom.xml index b188ee1b2c..a7fd581875 100644 --- a/pmd-dart/pom.xml +++ b/pmd-dart/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-dist/pom.xml b/pmd-dist/pom.xml index 97ce623583..b872b7d892 100644 --- a/pmd-dist/pom.xml +++ b/pmd-dist/pom.xml @@ -8,7 +8,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-doc/pom.xml b/pmd-doc/pom.xml index 441d875996..c16d32c3f6 100644 --- a/pmd-doc/pom.xml +++ b/pmd-doc/pom.xml @@ -8,7 +8,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-fortran/pom.xml b/pmd-fortran/pom.xml index b3cf3c3264..a814745381 100644 --- a/pmd-fortran/pom.xml +++ b/pmd-fortran/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-go/pom.xml b/pmd-go/pom.xml index a5031bae0b..fd05b202c6 100644 --- a/pmd-go/pom.xml +++ b/pmd-go/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-groovy/pom.xml b/pmd-groovy/pom.xml index 76debe812b..5efe373f53 100644 --- a/pmd-groovy/pom.xml +++ b/pmd-groovy/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-java/pom.xml b/pmd-java/pom.xml index a8578094b4..ce94835527 100644 --- a/pmd-java/pom.xml +++ b/pmd-java/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-java8/pom.xml b/pmd-java8/pom.xml index ddbc18724e..1c66765abb 100644 --- a/pmd-java8/pom.xml +++ b/pmd-java8/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-javascript/pom.xml b/pmd-javascript/pom.xml index a5946cb70d..448653c690 100644 --- a/pmd-javascript/pom.xml +++ b/pmd-javascript/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-jsp/pom.xml b/pmd-jsp/pom.xml index c0b0d7044d..8125636cbd 100644 --- a/pmd-jsp/pom.xml +++ b/pmd-jsp/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-kotlin/pom.xml b/pmd-kotlin/pom.xml index 6530328d08..222c86a3b5 100644 --- a/pmd-kotlin/pom.xml +++ b/pmd-kotlin/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-lang-test/pom.xml b/pmd-lang-test/pom.xml index 02b70eb3f4..0d76a7a62e 100644 --- a/pmd-lang-test/pom.xml +++ b/pmd-lang-test/pom.xml @@ -12,7 +12,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-lua/pom.xml b/pmd-lua/pom.xml index ac422b72e5..f7c31e58a6 100644 --- a/pmd-lua/pom.xml +++ b/pmd-lua/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-matlab/pom.xml b/pmd-matlab/pom.xml index a26449e7e7..d06b8c5a59 100644 --- a/pmd-matlab/pom.xml +++ b/pmd-matlab/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-modelica/pom.xml b/pmd-modelica/pom.xml index 348c9f4512..3f910d8318 100644 --- a/pmd-modelica/pom.xml +++ b/pmd-modelica/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-objectivec/pom.xml b/pmd-objectivec/pom.xml index daab5708db..33b886f309 100644 --- a/pmd-objectivec/pom.xml +++ b/pmd-objectivec/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-perl/pom.xml b/pmd-perl/pom.xml index e52d43eac9..6dadc589a7 100644 --- a/pmd-perl/pom.xml +++ b/pmd-perl/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-php/pom.xml b/pmd-php/pom.xml index 574dfdb717..15a81794b2 100644 --- a/pmd-php/pom.xml +++ b/pmd-php/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-plsql/pom.xml b/pmd-plsql/pom.xml index 7c611bf612..2e055d58e1 100644 --- a/pmd-plsql/pom.xml +++ b/pmd-plsql/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-python/pom.xml b/pmd-python/pom.xml index 4117db3f60..787622f775 100644 --- a/pmd-python/pom.xml +++ b/pmd-python/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-ruby/pom.xml b/pmd-ruby/pom.xml index 072cdeeaf2..1080bc351a 100644 --- a/pmd-ruby/pom.xml +++ b/pmd-ruby/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-scala-modules/pmd-scala-common/pom.xml b/pmd-scala-modules/pmd-scala-common/pom.xml index 47f2f5528f..f32e0cdf69 100644 --- a/pmd-scala-modules/pmd-scala-common/pom.xml +++ b/pmd-scala-modules/pmd-scala-common/pom.xml @@ -8,7 +8,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../.. diff --git a/pmd-scala-modules/pmd-scala_2.12/pom.xml b/pmd-scala-modules/pmd-scala_2.12/pom.xml index f14a729611..b384a7b3d8 100644 --- a/pmd-scala-modules/pmd-scala_2.12/pom.xml +++ b/pmd-scala-modules/pmd-scala_2.12/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd-scala-common - 6.42.0 + 6.43.0-SNAPSHOT ../pmd-scala-common diff --git a/pmd-scala-modules/pmd-scala_2.13/pom.xml b/pmd-scala-modules/pmd-scala_2.13/pom.xml index d39ba1356a..e18ebf26a9 100644 --- a/pmd-scala-modules/pmd-scala_2.13/pom.xml +++ b/pmd-scala-modules/pmd-scala_2.13/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd-scala-common - 6.42.0 + 6.43.0-SNAPSHOT ../pmd-scala-common diff --git a/pmd-scala/pom.xml b/pmd-scala/pom.xml index e601da1604..7230d2c2fc 100644 --- a/pmd-scala/pom.xml +++ b/pmd-scala/pom.xml @@ -9,7 +9,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-swift/pom.xml b/pmd-swift/pom.xml index e623288af3..ac640fe21b 100644 --- a/pmd-swift/pom.xml +++ b/pmd-swift/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-test/pom.xml b/pmd-test/pom.xml index f9886cc8ef..9144c1b44a 100644 --- a/pmd-test/pom.xml +++ b/pmd-test/pom.xml @@ -8,7 +8,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-visualforce/pom.xml b/pmd-visualforce/pom.xml index b3ac454e06..8f921ff91f 100644 --- a/pmd-visualforce/pom.xml +++ b/pmd-visualforce/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-vm/pom.xml b/pmd-vm/pom.xml index 69ae6ba854..ce231f9a70 100644 --- a/pmd-vm/pom.xml +++ b/pmd-vm/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pmd-xml/pom.xml b/pmd-xml/pom.xml index 6740318e9a..abf25370b7 100644 --- a/pmd-xml/pom.xml +++ b/pmd-xml/pom.xml @@ -7,7 +7,7 @@ net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT ../ diff --git a/pom.xml b/pom.xml index d0c60adf07..ce2e8dc5f8 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 net.sourceforge.pmd pmd - 6.42.0 + 6.43.0-SNAPSHOT pom PMD @@ -55,7 +55,7 @@ scm:git:git://github.com/pmd/pmd.git scm:git:ssh://git@github.com/pmd/pmd.git https://github.com/pmd/pmd - pmd_releases/6.42.0 + HEAD @@ -76,7 +76,7 @@ - 2022-01-29T08:42:50Z + 2022-01-29T08:53:37Z 7 From 1d29cdeccb7524ca62c0a6d091f2670f9f3bde3d Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 29 Jan 2022 09:55:16 +0100 Subject: [PATCH 5/5] Prepare next development version [skip ci] --- docs/_config.yml | 6 +-- docs/pages/release_notes.md | 68 ------------------------ docs/pages/release_notes_old.md | 93 +++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+), 71 deletions(-) diff --git a/docs/_config.yml b/docs/_config.yml index 28095388a5..d27c5cc3d4 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,9 +1,9 @@ repository: pmd/pmd pmd: - version: 6.42.0 - previous_version: 6.41.0 - date: 29-January-2022 + version: 6.43.0-SNAPSHOT + previous_version: 6.42.0 + date: 26-February-2022 release_type: minor # release types: major, minor, bugfix diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index 810f0edcb8..b8f8783555 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -14,79 +14,11 @@ This is a {{ site.pmd.release_type }} release. ### New and noteworthy -#### Javascript: Rhino updated to latest version 1.7.14 - -[Rhino](https://github.com/mozilla/rhino), the implementation of JavaScript we use -for parsing JavaScript code, has been updated to the latest version 1.7.14. -Now language features like template strings can be parsed. However Rhino does -not support all features of the latest EcmaScript standard. - -#### New rules - -* The new Java rule {% rule "java/codestyle/FinalParameterInAbstractMethod" %} detects parameters that are - declared as final in interfaces or abstract methods. Declaring the parameters as final is useless - because the implementation may choose to not respect it. - -```xml - -``` - - The rule is part of the quickstart.xml ruleset. - -#### Modified rules - -* The Apex rule {% rule "apex/documentation/ApexDoc" %} has a new property `reportProperty`. - If set to `false` (default is `true` if unspecified) doesn't report missing ApexDoc comments on properties. - It allows you to enforce ApexDoc comments for classes and methods without requiring them for properties. - ### Fixed Issues -* core - * [#3328](https://github.com/pmd/pmd/issues/3328): \[core] designer.bat errors when JAVAFX_HOME contains spaces -* java - * [#3698](https://github.com/pmd/pmd/issues/3698): \[java] Error resolving Symbol Table -* java-bestpractices - * [#3209](https://github.com/pmd/pmd/issues/3209): \[java] UnusedPrivateMethod false positive with static method and cast expression - * [#3468](https://github.com/pmd/pmd/issues/3468): \[java] UnusedPrivateMethod false positive when outer class calls private static method on inner class -* java-design - * [#3679](https://github.com/pmd/pmd/issues/3679): \[java] Make FinalFieldCouldBeStatic detect constant variable -* java-errorprone - * [#3644](https://github.com/pmd/pmd/issues/3644): \[java] InvalidLogMessageFormat: false positives with logstash structured logging - * [#3686](https://github.com/pmd/pmd/issues/3686): \[java] ReturnEmptyCollectionRatherThanNull - false negative with conditioned returns - * [#3701](https://github.com/pmd/pmd/issues/3701): \[java] MissingStaticMethodInNonInstantiatableClass false positive with method inner classes - * [#3721](https://github.com/pmd/pmd/issues/3721): \[java] ReturnEmptyCollectionRatherThanNull - false positive with stream and lambda -* java-performance - * [#3492](https://github.com/pmd/pmd/issues/3492): \[java] UselessStringValueOf: False positive when there is no initial String to append to - * [#3639](https://github.com/pmd/pmd/issues/3639): \[java] UseStringBufferLength: false negative with empty string variable - * [#3712](https://github.com/pmd/pmd/issues/3712): \[java] InsufficientStringBufferDeclaration false positive with StringBuilder.setLength(0) -* javascript - * [#3703](https://github.com/pmd/pmd/issues/3703): \[javascript] Error - no Node adapter class registered for XmlPropRef - ### API Changes -No changes. - ### External Contributions -* [#3631](https://github.com/pmd/pmd/pull/3631): \[java] Fixed False positive for UselessStringValueOf when there is no initial String to append to - [John Armgardt](https://github.com/johnra2) -* [#3683](https://github.com/pmd/pmd/pull/3683): \[java] Fixed 3468 UnusedPrivateMethod false positive when outer class calls private static method on inner class - [John Armgardt](https://github.com/johnra2) -* [#3688](https://github.com/pmd/pmd/pull/3688): \[java] Bump log4j to 2.16.0 - [Sergey Nuyanzin](https://github.com/snuyanzin) -* [#3693](https://github.com/pmd/pmd/pull/3693): \[apex] ApexDoc: Add reportProperty property - [Steve Babula](https://github.com/babula) -* [#3704](https://github.com/pmd/pmd/pull/3704): \[java] Fix for #3686 - Fix ReturnEmptyCollectionRatherThanNull - [Oleksii Dykov](https://github.com/dykov) -* [#3713](https://github.com/pmd/pmd/pull/3713): \[java] Enhance UnnecessaryModifier to support records - [Vincent Galloy](https://github.com/vgalloy) -* [#3719](https://github.com/pmd/pmd/pull/3719): \[java] Upgrade log4j to 2.17.1 - [Daniel Paul Searles](https://github.com/squaresurf) -* [#3720](https://github.com/pmd/pmd/pull/3720): \[java] New rule: FinalParameterInAbstractMethod - [Vincent Galloy](https://github.com/vgalloy) -* [#3724](https://github.com/pmd/pmd/pull/3724): \[java] Fix for #3679 - fix FinalFieldCouldBeStatic - [Oleksii Dykov](https://github.com/dykov) -* [#3727](https://github.com/pmd/pmd/pull/3727): \[java] #3724 - fix FinalFieldCouldBeStatic: triggers only if the referenced name is static - [Oleksii Dykov](https://github.com/dykov) -* [#3742](https://github.com/pmd/pmd/pull/3742): \[java] Fix #3701 - fix MissingStaticMethodInNonInstantiatableClass for method local classes - [Oleksii Dykov](https://github.com/dykov) -* [#3744](https://github.com/pmd/pmd/pull/3744): \[core] Updated SaxonXPathRuleQueryTest.java - [Vyom Yadav](https://github.com/Vyom-Yadav) -* [#3745](https://github.com/pmd/pmd/pull/3745): \[java] Fix #3712: InsufficientStringBufferDeclaration setLength false positive - [Daniel Gredler](https://github.com/gredler) -* [#3747](https://github.com/pmd/pmd/pull/3747): \[visualforce] Updated DataType.java - [Vyom Yadav](https://github.com/Vyom-Yadav) - -### Stats -* 88 commits -* 35 closed tickets & PRs -* Days since last release: 62 - {% endtocmaker %} diff --git a/docs/pages/release_notes_old.md b/docs/pages/release_notes_old.md index 96385e950d..b51cf25a7d 100644 --- a/docs/pages/release_notes_old.md +++ b/docs/pages/release_notes_old.md @@ -5,6 +5,99 @@ permalink: pmd_release_notes_old.html Previous versions of PMD can be downloaded here: https://github.com/pmd/pmd/releases +## 29-January-2022 - 6.42.0 + +The PMD team is pleased to announce PMD 6.42.0. + +This is a minor release. + +### Table Of Contents + +* [New and noteworthy](#new-and-noteworthy) + * [Javascript: Rhino updated to latest version 1.7.14](#javascript:-rhino-updated-to-latest-version-1.7.14) + * [New rules](#new-rules) + * [Modified rules](#modified-rules) +* [Fixed Issues](#fixed-issues) +* [API Changes](#api-changes) +* [External Contributions](#external-contributions) +* [Stats](#stats) + +### New and noteworthy + +#### Javascript: Rhino updated to latest version 1.7.14 + +[Rhino](https://github.com/mozilla/rhino), the implementation of JavaScript we use +for parsing JavaScript code, has been updated to the latest version 1.7.14. +Now language features like template strings can be parsed. However Rhino does +not support all features of the latest EcmaScript standard. + +#### New rules + +* The new Java rule [`FinalParameterInAbstractMethod`](https://pmd.github.io/pmd-6.42.0/pmd_rules_java_codestyle.html#finalparameterinabstractmethod) detects parameters that are + declared as final in interfaces or abstract methods. Declaring the parameters as final is useless + because the implementation may choose to not respect it. + +```xml + +``` + + The rule is part of the quickstart.xml ruleset. + +#### Modified rules + +* The Apex rule [`ApexDoc`](https://pmd.github.io/pmd-6.42.0/pmd_rules_apex_documentation.html#apexdoc) has a new property `reportProperty`. + If set to `false` (default is `true` if unspecified) doesn't report missing ApexDoc comments on properties. + It allows you to enforce ApexDoc comments for classes and methods without requiring them for properties. + +### Fixed Issues + +* core + * [#3328](https://github.com/pmd/pmd/issues/3328): \[core] designer.bat errors when JAVAFX_HOME contains spaces +* java + * [#3698](https://github.com/pmd/pmd/issues/3698): \[java] Error resolving Symbol Table +* java-bestpractices + * [#3209](https://github.com/pmd/pmd/issues/3209): \[java] UnusedPrivateMethod false positive with static method and cast expression + * [#3468](https://github.com/pmd/pmd/issues/3468): \[java] UnusedPrivateMethod false positive when outer class calls private static method on inner class +* java-design + * [#3679](https://github.com/pmd/pmd/issues/3679): \[java] Make FinalFieldCouldBeStatic detect constant variable +* java-errorprone + * [#3644](https://github.com/pmd/pmd/issues/3644): \[java] InvalidLogMessageFormat: false positives with logstash structured logging + * [#3686](https://github.com/pmd/pmd/issues/3686): \[java] ReturnEmptyCollectionRatherThanNull - false negative with conditioned returns + * [#3701](https://github.com/pmd/pmd/issues/3701): \[java] MissingStaticMethodInNonInstantiatableClass false positive with method inner classes + * [#3721](https://github.com/pmd/pmd/issues/3721): \[java] ReturnEmptyCollectionRatherThanNull - false positive with stream and lambda +* java-performance + * [#3492](https://github.com/pmd/pmd/issues/3492): \[java] UselessStringValueOf: False positive when there is no initial String to append to + * [#3639](https://github.com/pmd/pmd/issues/3639): \[java] UseStringBufferLength: false negative with empty string variable + * [#3712](https://github.com/pmd/pmd/issues/3712): \[java] InsufficientStringBufferDeclaration false positive with StringBuilder.setLength(0) +* javascript + * [#3703](https://github.com/pmd/pmd/issues/3703): \[javascript] Error - no Node adapter class registered for XmlPropRef + +### API Changes + +No changes. + +### External Contributions + +* [#3631](https://github.com/pmd/pmd/pull/3631): \[java] Fixed False positive for UselessStringValueOf when there is no initial String to append to - [John Armgardt](https://github.com/johnra2) +* [#3683](https://github.com/pmd/pmd/pull/3683): \[java] Fixed 3468 UnusedPrivateMethod false positive when outer class calls private static method on inner class - [John Armgardt](https://github.com/johnra2) +* [#3688](https://github.com/pmd/pmd/pull/3688): \[java] Bump log4j to 2.16.0 - [Sergey Nuyanzin](https://github.com/snuyanzin) +* [#3693](https://github.com/pmd/pmd/pull/3693): \[apex] ApexDoc: Add reportProperty property - [Steve Babula](https://github.com/babula) +* [#3704](https://github.com/pmd/pmd/pull/3704): \[java] Fix for #3686 - Fix ReturnEmptyCollectionRatherThanNull - [Oleksii Dykov](https://github.com/dykov) +* [#3713](https://github.com/pmd/pmd/pull/3713): \[java] Enhance UnnecessaryModifier to support records - [Vincent Galloy](https://github.com/vgalloy) +* [#3719](https://github.com/pmd/pmd/pull/3719): \[java] Upgrade log4j to 2.17.1 - [Daniel Paul Searles](https://github.com/squaresurf) +* [#3720](https://github.com/pmd/pmd/pull/3720): \[java] New rule: FinalParameterInAbstractMethod - [Vincent Galloy](https://github.com/vgalloy) +* [#3724](https://github.com/pmd/pmd/pull/3724): \[java] Fix for #3679 - fix FinalFieldCouldBeStatic - [Oleksii Dykov](https://github.com/dykov) +* [#3727](https://github.com/pmd/pmd/pull/3727): \[java] #3724 - fix FinalFieldCouldBeStatic: triggers only if the referenced name is static - [Oleksii Dykov](https://github.com/dykov) +* [#3742](https://github.com/pmd/pmd/pull/3742): \[java] Fix #3701 - fix MissingStaticMethodInNonInstantiatableClass for method local classes - [Oleksii Dykov](https://github.com/dykov) +* [#3744](https://github.com/pmd/pmd/pull/3744): \[core] Updated SaxonXPathRuleQueryTest.java - [Vyom Yadav](https://github.com/Vyom-Yadav) +* [#3745](https://github.com/pmd/pmd/pull/3745): \[java] Fix #3712: InsufficientStringBufferDeclaration setLength false positive - [Daniel Gredler](https://github.com/gredler) +* [#3747](https://github.com/pmd/pmd/pull/3747): \[visualforce] Updated DataType.java - [Vyom Yadav](https://github.com/Vyom-Yadav) + +### Stats +* 88 commits +* 35 closed tickets & PRs +* Days since last release: 62 + ## 27-November-2021 - 6.41.0 The PMD team is pleased to announce PMD 6.41.0.