??-May-2021 - 6.35.0-SNAPSHOT
The PMD team is pleased to announce PMD 6.35.0-SNAPSHOT.
This is a minor release.
New and noteworthy
Modified rules
- The Java rule
CompareObjectsWithEquals
has now a new propertytypesThatCompareByReference
. With that property, you can configure types, that should be whitelisted for comparison by reference. By default,java.lang.Enum
andjava.lang.Class
are allowed, but you could add custom types here. Additionally comparisons against constants are allowed now. This makes the rule less noisy when two constants are compared. Constants are identified by looking for an all-caps identifier.
Fixed Issues
- apex
- #3243: [apex] Correct findBoundary when traversing AST
- doc
- #3230: [doc] Remove “Edit me” button for language index pages
- dist
- #2466: [dist] Distribution archive doesn’t include all batch scripts
- java-bestpractices
- java-codestyle
- #2655: [java] UnnecessaryImport false positive for on-demand imports
- #3262: [java] FieldDeclarationsShouldBeAtStartOfClass: false negative with anon classes
- #3265: [java] MethodArgumentCouldBeFinal: false negatives with interfaces and inner classes
- #3266: [java] LocalVariableCouldBeFinal: false negatives with interfaces, anon classes
- java-errorprone