24 April 2021
The PMD team is pleased to announce PMD 6.34.0.
This is a minor release.
The new Java rule UseStandardCharsets
finds usages of Charset.forName
,
where StandardCharsets
can be used instead.
This rule is also part of the Quickstart Ruleset (rulesets/java/quickstart.xml
) for Java.
The new Java rule UnnecessaryImport
replaces the rules
UnusedImports
, DuplicateImports
,
ImportFromSamePackage
, and DontImportJavaLang
.
This rule is also part of the Quickstart Ruleset (rulesets/java/quickstart.xml
) for Java.
ApexCRUDViolation
does not ignore getters anymore and also flags
SOQL/SOSL/DML operations without access permission checks in getters. This will produce false positives now for
VF getter methods, but we can’t reliably detect, whether a getter is a VF getter or not. In such cases,
the violation should be suppressed.UnusedImports
: use the rule UnnecessaryImport
insteadDuplicateImports
: use the rule UnnecessaryImport
insteadDontImportJavaLang
: use the rule UnnecessaryImport
insteadImportFromSamePackage
: use the rule UnnecessaryImport
insteadNo changes.