Menu

#1140 public EcmascriptNode getBody(int index) {

PMD-5.1.0
closed
ECMAScript (9)
PMD
4-Minor
Bug
5.0.x
2014-09-17
2013-10-15
No

Hello,

In pmd.lang.ecmascript.ast.ASTFunctionNode, I think the parameter of getBody() is not required, because not used.
Obviouly this not a bug, but it is confusing.

public EcmascriptNode getBody(int index) {
    return (EcmascriptNode) jjtGetChild(jjtGetNumChildren() - 1);
}

Regards

Discussion

  • Andreas Dangel

    Andreas Dangel - 2013-10-17
    • status: open --> closed
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-5.1.0
     

Log in to post a comment.