Forbid type params for record ctors
This commit is contained in:
@ -1160,7 +1160,7 @@ void RecordBodyDeclaration() #void :
|
||||
private void RecordCtorLookahead() #void:
|
||||
{}
|
||||
{
|
||||
Modifiers() [ TypeParameters() ] <IDENTIFIER> ("throws" | "{")
|
||||
Modifiers() <IDENTIFIER> "{"
|
||||
}
|
||||
|
||||
void RecordConstructorDeclaration():
|
||||
@ -1169,7 +1169,6 @@ void RecordConstructorDeclaration():
|
||||
}
|
||||
{
|
||||
modifiers = Modifiers() { jjtThis.setModifiers(modifiers); }
|
||||
[TypeParameters()]
|
||||
<IDENTIFIER> { jjtThis.setImage(token.image); }
|
||||
Block()
|
||||
}
|
||||
|
@ -14,7 +14,6 @@ import net.sourceforge.pmd.annotation.Experimental;
|
||||
*
|
||||
* RecordConstructorDeclaration ::= ({@linkplain ASTAnnotation Annotation})*
|
||||
* RecordModifiers
|
||||
* {@linkplain ASTTypeParameters TypeParameters}?
|
||||
* <IDENTIFIER>
|
||||
* {@link ASTBlock Block}
|
||||
*
|
||||
|
Reference in New Issue
Block a user