Menu

#1289 CommentRequired not ignored if javadoc {@inheritDoc} anon inner classes

PMD-5.2.3
closed
None
PMD
3-Major
Bug
5.2.1
2014-12-21
2014-12-03
Dell Green
No

CommentRequired is being ignored correctly if {@inheritDoc} is the javadoc on a public or protected method, however it flags 'CommentRequired' on anonymous inner class instantiation even if comment is present.

Have tried using xpath expression to create violationSuppressXPath on the rule, but the AST in 'designer' doesnt seem to show the comment so cant check if present

Discussion

  • Andreas Dangel

    Andreas Dangel - 2014-12-18
    • status: open --> closed
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-Next
     
  • Andreas Dangel

    Andreas Dangel - 2014-12-18

    Will be fixed with the next release.

     

Log in to post a comment.