Note that String Templates (introduced as preview in Java 21 and 22) are not supported anymore in Java 23,
see JDK-8329949 for details.
In order to analyze a project with PMD that uses these preview language features,
you'll need to enable it via the environment variable PMD_JAVA_OPTS and select the new language
version 23-preview:
Note: Support for Java 21 preview language features have been removed. The version "21-preview"
are no longer available.
π New Rules
The new Java rule AvoidSynchronizedStatement finds synchronization blocks that
could cause performance issues with virtual threads due to pinning.
The new JavaScript rule AvoidConsoleStatements finds any function calls
on the Console API (e.g. console.log). Using these in production code might negatively impact performance.
Note that String Templates (introduced as preview in Java 21 and 22) are not supported anymore in Java 23,
see JDK-8329949 for details.
In order to analyze a project with PMD that uses these preview language features,
you'll need to enable it via the environment variable PMD_JAVA_OPTS and select the new language
version 23-preview:
Note: Support for Java 21 preview language features have been removed. The version "21-preview"
are no longer available.
π New Rules
The new Java rule AvoidSynchronizedStatement finds synchronization blocks that
could cause performance issues with virtual threads due to pinning.
The new JavaScript rule AvoidConsoleStatements finds any function calls
on the Console API (e.g. console.log). Using these in production code might negatively impact performance.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps
pmd.version
from 7.4.0 to 7.5.0. Updatesnet.sourceforge.pmd:pmd-core
from 7.4.0 to 7.5.0Release notes
Sourced from net.sourceforge.pmd:pmd-core's releases.
... (truncated)
Commits
74ada42
[release] prepare release pmd_releases/7.5.0453f669
Prepare pmd release 7.5.0bff1444
[doc] Update pmd_sidebar.yml8b44d2f
[javascript] New rule AvoidConsoleStatements (#5126)537dab9
[java] Support Java 23 (#5112)819b6bc
[java] Fix #5084 - crash in LUB with raw types (#5179)ada303d
[doc] Document new java language prop xStrictTypeResa44a5ca
[doc] Update release notes (#5048)c6ef543
Add@βAB-xdev
as a contributor488807f
[java] Add testcase for #5048Updates
net.sourceforge.pmd:pmd-java
from 7.4.0 to 7.5.0Release notes
Sourced from net.sourceforge.pmd:pmd-java's releases.
... (truncated)
Commits
74ada42
[release] prepare release pmd_releases/7.5.0453f669
Prepare pmd release 7.5.0bff1444
[doc] Update pmd_sidebar.yml8b44d2f
[javascript] New rule AvoidConsoleStatements (#5126)537dab9
[java] Support Java 23 (#5112)819b6bc
[java] Fix #5084 - crash in LUB with raw types (#5179)ada303d
[doc] Document new java language prop xStrictTypeResa44a5ca
[doc] Update release notes (#5048)c6ef543
Add@βAB-xdev
as a contributor488807f
[java] Add testcase for #5048Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show