This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 3ef805b Bump pmdVersion from 7.16.0 to 7.17.0
3ef805b is described below
commit 3ef805b36e7ab454ed4e4fefc7d81ec804b4a9e4
Author: Tim Peeters <[email protected]>
AuthorDate: Mon Oct 6 07:44:55 2025 +0200
Bump pmdVersion from 7.16.0 to 7.17.0
* Bump pmdVersion from 7.16.0 to 7.17.0
Bumps `pmdVersion` from 7.16.0 to 7.17.0.
Updates `net.sourceforge.pmd:pmd-core` from 7.16.0 to 7.17.0
- [Release notes](https://github.com/pmd/pmd/releases)
-
[Changelog](https://github.com/pmd/pmd/blob/main/docs/render_release_notes.rb)
-
[Commits](https://github.com/pmd/pmd/compare/pmd_releases/7.16.0...pmd_releases/7.17.0)
Updates `net.sourceforge.pmd:pmd-java` from 7.16.0 to 7.17.0
- [Release notes](https://github.com/pmd/pmd/releases)
-
[Changelog](https://github.com/pmd/pmd/blob/main/docs/render_release_notes.rb)
-
[Commits](https://github.com/pmd/pmd/compare/pmd_releases/7.16.0...pmd_releases/7.17.0)
Updates `net.sourceforge.pmd:pmd-javascript` from 7.16.0 to 7.17.0
- [Release notes](https://github.com/pmd/pmd/releases)
-
[Changelog](https://github.com/pmd/pmd/blob/main/docs/render_release_notes.rb)
-
[Commits](https://github.com/pmd/pmd/compare/pmd_releases/7.16.0...pmd_releases/7.17.0)
Updates `net.sourceforge.pmd:pmd-jsp` from 7.16.0 to 7.17.0
- [Release notes](https://github.com/pmd/pmd/releases)
-
[Changelog](https://github.com/pmd/pmd/blob/main/docs/render_release_notes.rb)
-
[Commits](https://github.com/pmd/pmd/compare/pmd_releases/7.16.0...pmd_releases/7.17.0)
---
updated-dependencies:
- dependency-name: net.sourceforge.pmd:pmd-core
dependency-version: 7.17.0
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: net.sourceforge.pmd:pmd-java
dependency-version: 7.17.0
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: net.sourceforge.pmd:pmd-javascript
dependency-version: 7.17.0
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: net.sourceforge.pmd:pmd-jsp
dependency-version: 7.17.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected]>
* Replace UselessOperationOnImmutable with UselessPureMethodCall
* Fix broken tests (UnusedFormalParameter ignores public constructors now).
* Bump maven-invoker-plugin.
---------
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot]
<49699333+dependabot[bot]@users.noreply.github.com>
---
pom.xml | 3 ++-
src/it/MPMD-163/src/main/java/com/mycompany/app/Foo.java | 2 +-
src/it/MPMD-270-325-JDK11/src/main/java/com/mycompany/app/Foo.java | 2 +-
src/it/MPMD-280-JDK12/src/main/java/com/mycompany/app/Foo.java | 2 +-
src/it/MPMD-295-JDK13/src/main/java/com/mycompany/app/Foo.java | 2 +-
src/it/MPMD-302-JDK14/src/main/java/com/mycompany/app/Foo.java | 2 +-
src/it/MPMD-302-JDK15/src/main/java/com/mycompany/app/Foo.java | 2 +-
src/it/MPMD-312-JDK16/src/main/java/com/mycompany/app/Foo.java | 2 +-
src/it/MPMD-312-JDK17/src/main/java/com/mycompany/app/Foo.java | 2 +-
src/it/MPMD-332-JDK18/src/main/java/com/mycompany/app/Foo.java | 2 +-
src/it/MPMD-348-JDK19/src/main/java/com/mycompany/app/Foo.java | 2 +-
src/it/MPMD-365-JDK20/src/main/java/com/mycompany/app/Foo.java | 2 +-
src/it/MPMD-379-JDK21/src/main/java/com/mycompany/app/Foo.java | 2 +-
src/it/empty-rulesets/src/main/java/com/mycompany/app/Foo.java | 2 +-
src/main/resources/rulesets/java/maven-pmd-plugin-default.xml | 2 +-
src/main/resources/rulesets/maven.xml | 2 +-
src/site/apt/examples/usingRuleSets.apt.vm | 2 +-
17 files changed, 18 insertions(+), 17 deletions(-)
diff --git a/pom.xml b/pom.xml
index 268c057..0959ea9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -83,7 +83,7 @@ under the License.
<properties>
<javaVersion>8</javaVersion>
<mavenVersion>3.9.11</mavenVersion>
- <pmdVersion>7.16.0</pmdVersion>
+ <pmdVersion>7.17.0</pmdVersion>
<slf4jVersion>1.7.36</slf4jVersion>
<resolverVersion>1.9.24</resolverVersion>
<doxiaVersion>2.0.0</doxiaVersion>
@@ -398,6 +398,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
+ <version>3.9.1</version>
<configuration>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<debug>false</debug>
diff --git a/src/it/MPMD-163/src/main/java/com/mycompany/app/Foo.java
b/src/it/MPMD-163/src/main/java/com/mycompany/app/Foo.java
index 029e968..45be021 100644
--- a/src/it/MPMD-163/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/MPMD-163/src/main/java/com/mycompany/app/Foo.java
@@ -20,7 +20,7 @@
import java.util.ArrayList;
public class Foo
{
- public Foo(final ArrayList<String> foo)
+ private Foo(final ArrayList<String> foo)
{
}
diff --git a/src/it/MPMD-270-325-JDK11/src/main/java/com/mycompany/app/Foo.java
b/src/it/MPMD-270-325-JDK11/src/main/java/com/mycompany/app/Foo.java
index 4823d57..62f0949 100644
--- a/src/it/MPMD-270-325-JDK11/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/MPMD-270-325-JDK11/src/main/java/com/mycompany/app/Foo.java
@@ -23,7 +23,7 @@ import java.util.ArrayList;
public class Foo
{
- public Foo( final ArrayList<String> foo )
+ private Foo( final ArrayList<String> foo )
{
}
diff --git a/src/it/MPMD-280-JDK12/src/main/java/com/mycompany/app/Foo.java
b/src/it/MPMD-280-JDK12/src/main/java/com/mycompany/app/Foo.java
index 4823d57..62f0949 100644
--- a/src/it/MPMD-280-JDK12/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/MPMD-280-JDK12/src/main/java/com/mycompany/app/Foo.java
@@ -23,7 +23,7 @@ import java.util.ArrayList;
public class Foo
{
- public Foo( final ArrayList<String> foo )
+ private Foo( final ArrayList<String> foo )
{
}
diff --git a/src/it/MPMD-295-JDK13/src/main/java/com/mycompany/app/Foo.java
b/src/it/MPMD-295-JDK13/src/main/java/com/mycompany/app/Foo.java
index 4823d57..62f0949 100644
--- a/src/it/MPMD-295-JDK13/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/MPMD-295-JDK13/src/main/java/com/mycompany/app/Foo.java
@@ -23,7 +23,7 @@ import java.util.ArrayList;
public class Foo
{
- public Foo( final ArrayList<String> foo )
+ private Foo( final ArrayList<String> foo )
{
}
diff --git a/src/it/MPMD-302-JDK14/src/main/java/com/mycompany/app/Foo.java
b/src/it/MPMD-302-JDK14/src/main/java/com/mycompany/app/Foo.java
index 4823d57..62f0949 100644
--- a/src/it/MPMD-302-JDK14/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/MPMD-302-JDK14/src/main/java/com/mycompany/app/Foo.java
@@ -23,7 +23,7 @@ import java.util.ArrayList;
public class Foo
{
- public Foo( final ArrayList<String> foo )
+ private Foo( final ArrayList<String> foo )
{
}
diff --git a/src/it/MPMD-302-JDK15/src/main/java/com/mycompany/app/Foo.java
b/src/it/MPMD-302-JDK15/src/main/java/com/mycompany/app/Foo.java
index 4823d57..62f0949 100644
--- a/src/it/MPMD-302-JDK15/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/MPMD-302-JDK15/src/main/java/com/mycompany/app/Foo.java
@@ -23,7 +23,7 @@ import java.util.ArrayList;
public class Foo
{
- public Foo( final ArrayList<String> foo )
+ private Foo( final ArrayList<String> foo )
{
}
diff --git a/src/it/MPMD-312-JDK16/src/main/java/com/mycompany/app/Foo.java
b/src/it/MPMD-312-JDK16/src/main/java/com/mycompany/app/Foo.java
index 4823d57..62f0949 100644
--- a/src/it/MPMD-312-JDK16/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/MPMD-312-JDK16/src/main/java/com/mycompany/app/Foo.java
@@ -23,7 +23,7 @@ import java.util.ArrayList;
public class Foo
{
- public Foo( final ArrayList<String> foo )
+ private Foo( final ArrayList<String> foo )
{
}
diff --git a/src/it/MPMD-312-JDK17/src/main/java/com/mycompany/app/Foo.java
b/src/it/MPMD-312-JDK17/src/main/java/com/mycompany/app/Foo.java
index 4823d57..62f0949 100644
--- a/src/it/MPMD-312-JDK17/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/MPMD-312-JDK17/src/main/java/com/mycompany/app/Foo.java
@@ -23,7 +23,7 @@ import java.util.ArrayList;
public class Foo
{
- public Foo( final ArrayList<String> foo )
+ private Foo( final ArrayList<String> foo )
{
}
diff --git a/src/it/MPMD-332-JDK18/src/main/java/com/mycompany/app/Foo.java
b/src/it/MPMD-332-JDK18/src/main/java/com/mycompany/app/Foo.java
index 4823d57..62f0949 100644
--- a/src/it/MPMD-332-JDK18/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/MPMD-332-JDK18/src/main/java/com/mycompany/app/Foo.java
@@ -23,7 +23,7 @@ import java.util.ArrayList;
public class Foo
{
- public Foo( final ArrayList<String> foo )
+ private Foo( final ArrayList<String> foo )
{
}
diff --git a/src/it/MPMD-348-JDK19/src/main/java/com/mycompany/app/Foo.java
b/src/it/MPMD-348-JDK19/src/main/java/com/mycompany/app/Foo.java
index 4823d57..62f0949 100644
--- a/src/it/MPMD-348-JDK19/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/MPMD-348-JDK19/src/main/java/com/mycompany/app/Foo.java
@@ -23,7 +23,7 @@ import java.util.ArrayList;
public class Foo
{
- public Foo( final ArrayList<String> foo )
+ private Foo( final ArrayList<String> foo )
{
}
diff --git a/src/it/MPMD-365-JDK20/src/main/java/com/mycompany/app/Foo.java
b/src/it/MPMD-365-JDK20/src/main/java/com/mycompany/app/Foo.java
index 4823d57..62f0949 100644
--- a/src/it/MPMD-365-JDK20/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/MPMD-365-JDK20/src/main/java/com/mycompany/app/Foo.java
@@ -23,7 +23,7 @@ import java.util.ArrayList;
public class Foo
{
- public Foo( final ArrayList<String> foo )
+ private Foo( final ArrayList<String> foo )
{
}
diff --git a/src/it/MPMD-379-JDK21/src/main/java/com/mycompany/app/Foo.java
b/src/it/MPMD-379-JDK21/src/main/java/com/mycompany/app/Foo.java
index 4823d57..62f0949 100644
--- a/src/it/MPMD-379-JDK21/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/MPMD-379-JDK21/src/main/java/com/mycompany/app/Foo.java
@@ -23,7 +23,7 @@ import java.util.ArrayList;
public class Foo
{
- public Foo( final ArrayList<String> foo )
+ private Foo( final ArrayList<String> foo )
{
}
diff --git a/src/it/empty-rulesets/src/main/java/com/mycompany/app/Foo.java
b/src/it/empty-rulesets/src/main/java/com/mycompany/app/Foo.java
index 2a5a2bc..09334a2 100644
--- a/src/it/empty-rulesets/src/main/java/com/mycompany/app/Foo.java
+++ b/src/it/empty-rulesets/src/main/java/com/mycompany/app/Foo.java
@@ -21,7 +21,7 @@ import java.util.ArrayList;
public class Foo
{
- public Foo( final ArrayList<String> foo )
+ private Foo( final ArrayList<String> foo )
{
}
diff --git a/src/main/resources/rulesets/java/maven-pmd-plugin-default.xml
b/src/main/resources/rulesets/java/maven-pmd-plugin-default.xml
index 238e51b..e1e2eb7 100644
--- a/src/main/resources/rulesets/java/maven-pmd-plugin-default.xml
+++ b/src/main/resources/rulesets/java/maven-pmd-plugin-default.xml
@@ -72,7 +72,7 @@ under the License.
<rule ref="category/java/errorprone.xml/UnconditionalIfStatement" />
<rule ref="category/java/errorprone.xml/UnnecessaryConversionTemporary" />
<rule ref="category/java/errorprone.xml/UnusedNullCheckInEquals" />
- <rule ref="category/java/errorprone.xml/UselessOperationOnImmutable" />
+ <rule ref="category/java/errorprone.xml/UselessPureMethodCall" />
<rule ref="category/java/multithreading.xml/AvoidThreadGroup" />
<rule ref="category/java/multithreading.xml/DontCallThreadRun" />
diff --git a/src/main/resources/rulesets/maven.xml
b/src/main/resources/rulesets/maven.xml
index e4ab806..6b46241 100644
--- a/src/main/resources/rulesets/maven.xml
+++ b/src/main/resources/rulesets/maven.xml
@@ -77,7 +77,7 @@ under the License.
<rule ref="category/java/errorprone.xml/UnconditionalIfStatement" />
<rule ref="category/java/errorprone.xml/UnnecessaryConversionTemporary" />
<rule ref="category/java/errorprone.xml/UnusedNullCheckInEquals" />
- <rule ref="category/java/errorprone.xml/UselessOperationOnImmutable" />
+ <rule ref="category/java/errorprone.xml/UselessPureMethodCall" />
<rule ref="category/java/multithreading.xml/AvoidThreadGroup" />
<rule ref="category/java/multithreading.xml/DontCallThreadRun" />
diff --git a/src/site/apt/examples/usingRuleSets.apt.vm
b/src/site/apt/examples/usingRuleSets.apt.vm
index ffe846f..70f8adb 100644
--- a/src/site/apt/examples/usingRuleSets.apt.vm
+++ b/src/site/apt/examples/usingRuleSets.apt.vm
@@ -134,7 +134,7 @@ The default ruleset
<rule ref="category/java/errorprone.xml/UnconditionalIfStatement" />
<rule ref="category/java/errorprone.xml/UnnecessaryConversionTemporary" />
<rule ref="category/java/errorprone.xml/UnusedNullCheckInEquals" />
- <rule ref="category/java/errorprone.xml/UselessOperationOnImmutable" />
+ <rule ref="category/java/errorprone.xml/UselessPureMethodCall" />
<rule ref="category/java/multithreading.xml/AvoidThreadGroup" />
<rule ref="category/java/multithreading.xml/DontCallThreadRun" />