26 June 2018
The PMD team is pleased to announce PMD 6.5.0.
This is a minor release.
apex-errorprone) detects usages non-officially supported annotations. Apex supported non existent annotations for legacy reasons. In the future, use of such non-existent annotations could result in broken Apex code that will not compile. A full list of supported annotations can be found here
java-codestyle) now detects enum constrcutors with explicit
privatemodifier. The rule now produces better error messages letting you know exactly which modifiers are redundant at each declaration.
The utility class
net.sourceforge.pmd.lang.java.ast.CommentUtil has been deprecated and will be removed
with PMD 7.0.0. Its methods have been intended to parse javadoc tags. A more useful solution will be added
around the AST node
FormalComment, which contains as children
JavadocElement nodes, which in
turn provide access to the
All comment AST nodes (
SingleLineComment) have a new method
getFilteredComment() which provide access to the comment text without the leading
AbstractCommentRule.tagsIndicesIn() has been deprecated and will be removed with
PMD 7.0.0. It is not very useful, since it doesn’t extract the information
in a useful way. You would still need check, which tags have been found, and with which
data they might be accompanied.