Skip to content

Commit

Permalink
[java] RecordConstructorDeclaration - do not use Name()
Browse files Browse the repository at this point in the history
  • Loading branch information
adangel committed Feb 28, 2020
1 parent 9917e3f commit 5f43e19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pmd-java/etc/grammar/Java.jjt
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ void RecordConstructorDeclaration():
(TypeAnnotation())*
modifiers = Modifiers() { jjtThis.setModifiers(modifiers); }
[TypeParameters()]
Name()
<IDENTIFIER> { jjtThis.setImage(token.image); }
[ "throws" NameList() ]
"{" ( BlockStatement() )* "}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* RecordConstructorDeclaration ::= ({@linkplain ASTTypeAnnotation TypeAnnotation})*
* {@linkplain ASTModifiers Modifiers}
* {@linkplain ASTTypeParameters TypeParameters}?
* {@linkplain ASTName Name}
* &lt;IDENTIFIER&gt;
* ( "throws" {@linkplain ASTNameList NameList} )?
* "{" ( {@linkplain ASTBlockStatement ASTBlockStatement} )* "}"
*
Expand Down

0 comments on commit 5f43e19

Please sign in to comment.