* Downloads: https://github.com/pmd/pmd/releases/tag/pmd_releases%2F6.22.0
* Documentation: https://pmd.github.io/pmd-6.22.0/
12-March-2020 - 6.22.0
The PMD team is pleased to announce PMD 6.22.0.
This is a minor release.
Table Of Contents
* New and noteworthy
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#new-and-noteworthy>
o Java 14 Support
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#java-14-support>
o Updated PMD Designer
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#updated-pmd-designer>
o Apex Suppressions
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#apex-suppressions>
o Improved CPD support for C#
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#improved-cpd-support-for-c#>
o XPath Rules
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#xpath-rules>
o New Rules
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#new-rules>
* Fixed Issues
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#fixed-issues>
* API Changes
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#api-changes>
o Deprecated APIs
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#deprecated-apis>
+ Internal API
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#internal-api>
+ For removal
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#for-removal>
+ In ASTs (JSP)
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#in-asts-(jsp)>
+ In ASTs (Velocity)
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#in-asts-(velocity)>
o PLSQL AST
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#plsql-ast>
* External Contributions
<https://sourceforge.net/p/pmd/news/2020/03/pmd-6220-released/#external-contributions>
New and noteworthy
Java 14 Support
This release of PMD brings support for Java 14. PMD can parse Switch
Expressions <https://openjdk.java.net/jeps/361>,
which have been promoted to be a standard language feature of Java.
PMD also parses Text Blocks <https://openjdk.java.net/jeps/368> as
String literals, which is still a preview
language feature in Java 14.
The new Pattern Matching for instanceof
<https://openjdk.java.net/jeps/305> can be used as well as
Records <https://openjdk.java.net/jeps/359>.
Note: The Text Blocks, Pattern Matching for instanceof and Records are
all preview language features of OpenJDK 14
and are not enabled by default. In order to
analyze a project with PMD that uses these language features, you'll
need to enable it via the environment
variable |PMD_JAVA_OPTS| and select the new language version |14-preview|:
export PMD_JAVA_OPTS=--enable-preview
./run.sh pmd -language java -version 14-preview ...
Note: Support for the extended break statement introduced in Java 12 as
a preview language feature
has been removed from PMD with this version. The version "12-preview" is
no longer available.
Updated PMD Designer
This PMD release ships a new version of the pmd-designer.
For the changes, see PMD Designer Changelog
<https://github.com/pmd/pmd-designer/releases/tag/6.21.0>.
Apex Suppressions
In addition to suppressing violation with the |@SuppressWarnings|
annotation, Apex now also supports
the suppressions with a |NOPMD| comment. See Suppressing warnings
<https://sourceforge.net/p/pmd/news/2020/03/pmd_userdocs_suppressing_warnings.html>.
Improved CPD support for C
The C# tokenizer is now based on an antlr grammar instead of a manual
written tokenizer. This
should give more accurate results and especially fixes the problems with
the using statement syntax
(see #2139 <https://github.com/pmd/pmd/issues/2139>).
XPath Rules
See the new documentation about Writing XPath Rules
<https://sourceforge.net/p/pmd/news/2020/03/pmd_userdocs_extending_writing_xpath_rules.html>.
/Note:/ As of PMD version 6.22.0, XPath versions 1.0 and the 1.0
compatibility mode are *deprecated*.
XPath 2.0 is superior in many ways, for example for its support for type
checking, sequence values,
or quantified expressions. For a detailed but approachable review of the
features of XPath 2.0 and above,
see the Saxon documentation
<https://www.saxonica.com/documentation/index.html#!expressions>.
New Rules
*
The Rule |CognitiveComplexity|
<https://pmd.github.io/pmd-6.22.0/pmd_rules_apex_design.html#cognitivecomplexity>
(|apex-design|) finds methods and classes
that are highly complex and therefore difficult to read and more
costly to maintain. In contrast
to cyclomatic complexity, this rule uses "Cognitive Complexity",
which is a measure of how
difficult it is for humans to read and understand a method.
*
The Rule |TestMethodsMustBeInTestClasses|
<https://pmd.github.io/pmd-6.22.0/pmd_rules_apex_errorprone.html#testmethodsmustbeintestclasses>
(|apex-errorprone|) finds test methods
that are not residing in a test class. The test methods should be
moved to a proper test class.
Support for tests inside functional classes was removed in Spring-13
(API Version 27.0), making classes
that violate this rule fail compile-time. This rule is however
useful when dealing with legacy code.
Fixed Issues
* apex
o #1087 <https://github.com/pmd/pmd/issues/1087>: [apex] Support
suppression via //NOPMD
o #2306 <https://github.com/pmd/pmd/issues/2306>: [apex] Switch
statements are not parsed/supported
* apex-design
o #2162 <https://github.com/pmd/pmd/issues/2162>: [apex] Cognitive
Complexity rule
* apex-errorprone
o #639 <https://github.com/pmd/pmd/issues/639>: [apex] Test
methods should not be in classes other than test classes
* cs
o #2139 <https://github.com/pmd/pmd/issues/2139>: [cs] CPD doesn't
understand alternate using statement syntax with C# 8.0
* doc
o #2274 <https://github.com/pmd/pmd/issues/2274>: [doc] Java API
documentation for PMD
* java
o #2159 <https://github.com/pmd/pmd/issues/2159>: [java] Prepare
for JDK 14
o #2268 <https://github.com/pmd/pmd/issues/2268>: [java] Improve
TypeHelper resilience
* java-bestpractices
o #2277 <https://github.com/pmd/pmd/issues/2277>: [java] FP in
UnusedImports for ambiguous static on-demand imports
* java-design
o #911 <https://github.com/pmd/pmd/issues/911>: [java]
UselessOverridingMethod false positive when elevating access
modifier
* java-errorprone
o #2242 <https://github.com/pmd/pmd/issues/2242>: [java]
False-positive MisplacedNullCheck reported
o #2250 <https://github.com/pmd/pmd/issues/2250>: [java]
InvalidLogMessageFormat flags logging calls using a slf4j-Marker
o #2255 <https://github.com/pmd/pmd/issues/2255>: [java]
InvalidLogMessageFormat false-positive for a lambda argument
* java-performance
o #2275 <https://github.com/pmd/pmd/issues/2275>: [java]
AppendCharacterWithChar flags literals in an expression
* plsql
o #2325 <https://github.com/pmd/pmd/issues/2325>: [plsql]
NullPointerException while running parsing test for CREATE TRIGGER
o #2327 <https://github.com/pmd/pmd/pull/2327>: [plsql] Parsing of
WHERE CURRENT OF
o #2328 <https://github.com/pmd/pmd/issues/2328>: [plsql] Support
XMLROOT
o #2331 <https://github.com/pmd/pmd/pull/2331>: [plsql] Fix in
Comment statement
o #2332 <https://github.com/pmd/pmd/pull/2332>: [plsql] Fixed
Execute Immediate statement parsing
o #2340 <https://github.com/pmd/pmd/pull/2340>: [plsql] Fixed
parsing / as divide or execute
API Changes
Deprecated APIs
Internal API
Those APIs are not intended to be used by clients, and will be hidden or
removed with PMD 7.0.0.
You can identify them with the |@InternalApi| annotation. You'll also
get a deprecation warning.
* |JavaLanguageHandler|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/JavaLanguageHandler.html#>
* |JavaLanguageParser|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/JavaLanguageParser.html#>
* |JavaDataFlowHandler|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/JavaDataFlowHandler.html#>
* Implementations of |RuleViolationFactory|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/rule/RuleViolationFactory.html#>
in each
language module, eg |JavaRuleViolationFactory|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/rule/JavaRuleViolationFactory.html#>.
See javadoc of |RuleViolationFactory|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/rule/RuleViolationFactory.html#>.
*
Implementations of |RuleViolation|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/RuleViolation.html#>
in each language module,
eg |JavaRuleViolation|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/rule/JavaRuleViolation.html#>.
See javadoc of
|RuleViolation|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/RuleViolation.html#>.
*
|RuleFactory|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/rules/RuleFactory.html#>
* |RuleBuilder|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/rules/RuleBuilder.html#>
* Constructors of |RuleSetFactory|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/RuleSetFactory.html#>,
use factory methods from |RulesetsFactoryUtils|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/RulesetsFactoryUtils.html#>
instead
*
|getRulesetFactory|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/RulesetsFactoryUtils.html#getRulesetFactory(net.sourceforge.pmd.PMDConfiguration,net.sourceforge.pmd.util.ResourceLoader)>
*
|AbstractApexNode|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-apex/6.22.0/net/sourceforge/pmd/lang/apex/ast/AbstractApexNode.html#>
* |AbstractApexNodeBase|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-apex/6.22.0/net/sourceforge/pmd/lang/apex/ast/AbstractApexNodeBase.html#>,
and the related |visit|
methods on |ApexParserVisitor|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-apex/6.22.0/net/sourceforge/pmd/lang/apex/ast/ApexParserVisitor.html#>
and its implementations.
Use |ApexNode|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-apex/6.22.0/net/sourceforge/pmd/lang/apex/ast/ApexNode.html#>
instead, now considers comments too.
For removal
* pmd-core
* |DFAGraphRule|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/dfa/DFAGraphRule.html#>
and its implementations
* |DFAGraphMethod|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/dfa/DFAGraphMethod.html#>
* Many methods on the |Node|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/ast/Node.html#>
interface
and |AbstractNode|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/ast/AbstractNode.html#>
base class. See their javadoc for details.
* |Node#isFindBoundary|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/ast/Node.html#isFindBoundary()>
is deprecated for XPath queries.
* Many APIs of |net.sourceforge.pmd.lang.metrics|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/metrics/package-summary.html#>,
though most of them were internal and
probably not used directly outside of PMD. Use |MetricsUtil|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/metrics/MetricsUtil.html#>
as
a replacement for the language-specific façades too.
* |QualifiableNode|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/ast/QualifiableNode.html#>,
|QualifiedName|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/ast/QualifiedName.html#>
* pmd-java
* |AbstractJavaParser|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/AbstractJavaParser.html#>
* |AbstractJavaHandler|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/AbstractJavaHandler.html#>
* |ASTAnyTypeDeclaration.TypeKind|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.21.0/net/sourceforge/pmd/lang/java/ast/ASTAnyTypeDeclaration.TypeKind.html>
* |ASTAnyTypeDeclaration#getKind|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTAnyTypeDeclaration.html#getKind()>
* |JavaQualifiedName|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/JavaQualifiedName.html#>
* |ASTCatchStatement#getBlock|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTCatchStatement.html#getBlock()>
* |ASTCompilationUnit#declarationsAreInDefaultPackage|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTCompilationUnit.html#declarationsAreInDefaultPackage()>
* |JavaQualifiableNode|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/JavaQualifiableNode.html#>
o |ASTAnyTypeDeclaration#getQualifiedName|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTAnyTypeDeclaration.html#getQualifiedName()>
o |ASTMethodOrConstructorDeclaration#getQualifiedName|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTMethodOrConstructorDeclaration.html#getQualifiedName()>
o |ASTLambdaExpression#getQualifiedName|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTLambdaExpression.html#getQualifiedName()>
* |net.sourceforge.pmd.lang.java.qname|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/qname/package-summary.html#>
and its contents
* |MethodLikeNode|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/MethodLikeNode.html#>
o Its methods will also be removed from its implementations,
|ASTMethodOrConstructorDeclaration|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTMethodOrConstructorDeclaration.html#>,
|ASTLambdaExpression|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTLambdaExpression.html#>.
* |ASTAnyTypeDeclaration#getImage|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTAnyTypeDeclaration.html#getImage()>
will be removed. Please use |getSimpleName()|
instead. This affects |ASTAnnotationTypeDeclaration#getImage|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTAnnotationTypeDeclaration.html#getImage()>,
|ASTClassOrInterfaceDeclaration#getImage|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTClassOrInterfaceDeclaration.html#getImage()>,
and
|ASTEnumDeclaration#getImage|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTEnumDeclaration.html#getImage()>.
* Several methods of |ASTTryStatement|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTTryStatement.html#>,
replacements with other names
have been added. This includes the XPath attribute |@Finally|,
replace it with a test for |child::FinallyStatement|.
* Several methods named |getGuardExpressionNode| are replaced with
|getCondition|. This affects the
following nodes: WhileStatement, DoStatement, ForStatement,
IfStatement, AssertStatement, ConditionalExpression.
* |ASTYieldStatement|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTYieldStatement.html#>
will not implement |TypeNode|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/TypeNode.html#>
anymore come 7.0.0. Test the type of the expression nested within it.
* |JavaMetrics|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/metrics/JavaMetrics.html#>,
|JavaMetricsComputer|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/metrics/JavaMetricsComputer.html#>
* |ASTArguments#getArgumentCount|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTArguments.html#getArgumentCount()>.
Use |size|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTArguments.html#size()>
instead.
* |ASTFormalParameters#getParameterCount|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTFormalParameters.html#getParameterCount()>.
Use |size|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-java/6.22.0/net/sourceforge/pmd/lang/java/ast/ASTFormalParameters.html#size()>
instead.
* pmd-apex
* |ApexMetrics|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-apex/6.22.0/net/sourceforge/pmd/lang/apex/metrics/ApexMetrics.html#>,
|ApexMetricsComputer|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-apex/6.22.0/net/sourceforge/pmd/lang/apex/metrics/ApexMetricsComputer.html#>
In ASTs (JSP)
As part of the changes we'd like to do to AST classes for 7.0.0, we
would like to
hide some methods and constructors that rule writers should not have
access to.
The following usages are now deprecated *in the JSP AST* (with other
languages to come):
* Manual instantiation of nodes. *Constructors of node classes are
deprecated* and
marked |InternalApi|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/annotation/InternalApi.html#>.
Nodes should only be obtained from the parser,
which for rules, means that they never need to instantiate node
themselves.
Those constructors will be made package private with 7.0.0.
* *Subclassing of abstract node classes, or usage of their type*. The
base classes are internal API
and will be hidden in version 7.0.0. You should not couple your code
to them.
o In the meantime you should use interfaces like |JspNode|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-jsp/6.22.0/net/sourceforge/pmd/lang/jsp/ast/JspNode.html#>
or
|Node|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/ast/Node.html#>,
or the other published interfaces in this package,
to refer to nodes generically.
o Concrete node classes will *be made final* with 7.0.0.
* Setters found in any node class or interface. *Rules should consider
the AST immutable*.
We will make those setters package private with 7.0.0.
* The class |JspParser|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-jsp/6.22.0/net/sourceforge/pmd/lang/jsp/JspParser.html#>
is deprecated and should not be used directly.
Use |LanguageVersionHandler#getParser|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/LanguageVersionHandler.html#getParser(ParserOptions)>
instead.
Please look at |net.sourceforge.pmd.lang.jsp.ast|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-jsp/6.22.0/net/sourceforge/pmd/lang/jsp/ast/package-summary.html#>
to find out the full list of deprecations.
In ASTs (Velocity)
As part of the changes we'd like to do to AST classes for 7.0.0, we
would like to
hide some methods and constructors that rule writers should not have
access to.
The following usages are now deprecated *in the VM AST* (with other
languages to come):
* Manual instantiation of nodes. *Constructors of node classes are
deprecated* and
marked |InternalApi|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/annotation/InternalApi.html#>.
Nodes should only be obtained from the parser,
which for rules, means that they never need to instantiate node
themselves.
Those constructors will be made package private with 7.0.0.
* *Subclassing of abstract node classes, or usage of their type*. The
base classes are internal API
and will be hidden in version 7.0.0. You should not couple your code
to them.
o In the meantime you should use interfaces like |VmNode|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-vm/6.22.0/net/sourceforge/pmd/lang/vm/ast/VmNode.html#>
or
|Node|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/ast/Node.html#>,
or the other published interfaces in this package,
to refer to nodes generically.
o Concrete node classes will *be made final* with 7.0.0.
* Setters found in any node class or interface. *Rules should consider
the AST immutable*.
We will make those setters package private with 7.0.0.
* The package |net.sourceforge.pmd.lang.vm.directive|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-vm/6.22.0/net/sourceforge/pmd/lang/vm/directive/package-summary.html#>
as well as the classes
|DirectiveMapper|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-vm/6.22.0/net/sourceforge/pmd/lang/vm/util/DirectiveMapper.html#>
and |LogUtil|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-vm/6.22.0/net/sourceforge/pmd/lang/vm/util/LogUtil.html#>
are deprecated
for removal. They were only used internally during parsing.
* The class |VmParser|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-vm/6.22.0/net/sourceforge/pmd/lang/vm/VmParser.html#>
is deprecated and should not be used directly.
Use |LanguageVersionHandler#getParser|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-core/6.22.0/net/sourceforge/pmd/lang/LanguageVersionHandler.html#getParser(ParserOptions)>
instead.
Please look at |net.sourceforge.pmd.lang.vm.ast|
<https://javadoc.io/page/net.sourceforge.pmd/pmd-vm/6.22.0/net/sourceforge/pmd/lang/vm/ast/package-summary.html#>
to find out the full list of deprecations.
PLSQL AST
The production and node |ASTCursorBody| was unnecessary, not used and
has been removed. Cursors have been already
parsed as |ASTCursorSpecification|.
External Contributions
* #2251 <https://github.com/pmd/pmd/pull/2251>: [java] FP for
InvalidLogMessageFormat when using slf4j-Markers - Kris Scheibe
<https://github.com/kris-scheibe>
* #2253 <https://github.com/pmd/pmd/pull/2253>: [modelica] Remove
duplicated dependencies - Piotrek Żygieło <https://github.com/pzygielo>
* #2256 <https://github.com/pmd/pmd/pull/2256>: [doc] Corrected XML
attributes in release notes - Maikel Steneker
<https://github.com/maikelsteneker>
* #2276 <https://github.com/pmd/pmd/pull/2276>: [java]
AppendCharacterWithCharRule ignore literals in expressions - Kris
Scheibe <https://github.com/kris-scheibe>
* #2278 <https://github.com/pmd/pmd/pull/2278>: [java] fix
UnusedImports rule for ambiguous static on-demand imports - Kris
Scheibe <https://github.com/kris-scheibe>
* #2279 <https://github.com/pmd/pmd/pull/2279>: [apex] Add support for
suppressing violations using the // NOPMD comment - Gwilym Kuiper
<https://github.com/gwilymatgearset>
* #2280 <https://github.com/pmd/pmd/pull/2280>: [cs] CPD: Replace C#
tokenizer by an Antlr-based one - Maikel Steneker
<https://github.com/maikelsteneker>
* #2297 <https://github.com/pmd/pmd/pull/2297>: [apex] Cognitive
complexity metrics - Gwilym Kuiper <https://github.com/gwilymatgearset>
* #2317 <https://github.com/pmd/pmd/pull/2317>: [apex] New Rule - Test
Methods Must Be In Test Classes - Brian Nørremark
<https://github.com/noerremark>
* #2321 <https://github.com/pmd/pmd/pull/2321>: [apex] Support switch
statements correctly in Cognitive Complexity - Gwilym Kuiper
<https://github.com/gwilymatgearset>
* #2326 <https://github.com/pmd/pmd/pull/2326>: [plsql] Added XML
functions to parser: extract(xml), xml_root and fixed xml_forest -
Piotr Szymanski <https://github.com/szyman23>
* #2327 <https://github.com/pmd/pmd/pull/2327>: [plsql] Parsing of
WHERE CURRENT OF added - Piotr Szymanski <https://github.com/szyman23>
* #2331 <https://github.com/pmd/pmd/pull/2331>: [plsql] Fix in Comment
statement - Piotr Szymanski <https://github.com/szyman23>
* #2332 <https://github.com/pmd/pmd/pull/2332>: [plsql] Fixed Execute
Immediate statement parsing - Piotr Szymanski
<https://github.com/szyman23>
* #2338 <https://github.com/pmd/pmd/pull/2338>: [cs] CPD: fixes in
filtering of using directives - Maikel Steneker
<https://github.com/maikelsteneker>
* #2339 <https://github.com/pmd/pmd/pull/2339>: [cs] CPD: Fixed CPD
--ignore-usings option - Maikel Steneker
<https://github.com/maikelsteneker>
* #2340 <https://github.com/pmd/pmd/pull/2340>: [plsql] fix for
parsing / as divide or execute - Piotr Szymanski
<https://github.com/szyman23>
* #2342 <https://github.com/pmd/pmd/pull/2342>: [xml] Update property
used in example - Piotrek Żygieło <https://github.com/pzygielo>
* #2344 <https://github.com/pmd/pmd/pull/2344>: [doc] Update ruleset
examples for ant - Piotrek Żygieło <https://github.com/pzygielo>
* #2343 <https://github.com/pmd/pmd/pull/2343>: [ci] Disable checking
for snapshots in jcenter - Piotrek Żygieło <https://github.com/pzygielo>
|