3.6 KiB
title | permalink | keywords |
---|---|---|
PMD Release Notes | pmd_release_notes.html | changelog, release notes |
????? - 6.6.0-SNAPSHOT
The PMD team is pleased to announce PMD 6.6.0.
This is a minor release.
Table Of Contents
New and noteworthy
Java 11 Support
PMD is now able to parse the local-variable declaration syntax var xxx
, that has been
extended for lambda parameters with Java 11 via
JEP 323: Local-Variable Syntax for Lambda Parameters.
New Rules
-
The new Java rule
LocalVariableNamingConventions
(java-codestlye
) detects local variable names that don't comply to a given convention. It defaults to standrd Java convention of using camelCase, but can be configured. Special cases can be configured for final variables and catched exceptions' names. -
The new Java rule
FormalParameterNamingConventions
(java-codestlye
) detects formal parameter names that don't comply to a given convention. It defaults to standrd Java convention of using camelCase, but can be configured. Special cases can be configured for final parameters and lambda parameters (considering wether they are explicitly typed or not)
Modified Rules
- The Java rules [
AccessorClassGeneration'](pmd_rules_java_bestpracices.html#accessorclassgeneration) and [
AccessorMethodGeneration](pmd_rules_java_bestpracices.html#accessormethodgeneration) (both in category
java-bestpractices`) have been modified to be only valid up until Java 10. Java 11 adds support for JEP 181: Nest-Based Access Control which avoids the generation of accessor classes / methods altogether.
Fixed Issues
- doc
- #1215: [doc] TOC links don't work?
- java-codestyle
- java-design
- #1217: [java] CyclomaticComplexityRule counts ?-operator twice
- plsql
- ui
- #1233: [ui] XPath autocomplete arrows on first and last items
API Changes
- The
findDescendantsOfType
methods innet.sourceforge.pmd.lang.ast.AbstractNode
no longer search for exact type matches, but will match subclasses too. That means, it's now possible to look for abstract node types such asAbstractJavaTypeNode
and not only for it's concrete subtypes.
External Contributions
- #1182: [ui] XPath AutoComplete - Akshat Bahety
- #1231: [doc] Minor typo fix in installation.md - Ashish Rana