From 6fb8b6b1b6b65a168e0c23e88763ac95ddc2c365 Mon Sep 17 00:00:00 2001 From: Rohit Kumar Date: Mon, 12 Nov 2018 01:56:35 +0530 Subject: [PATCH] Adding the fix for #1440 --- pmd-java/etc/grammar/Java.jjt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-java/etc/grammar/Java.jjt b/pmd-java/etc/grammar/Java.jjt index 991335622f..6045a4d59a 100644 --- a/pmd-java/etc/grammar/Java.jjt +++ b/pmd-java/etc/grammar/Java.jjt @@ -1854,7 +1854,7 @@ void ConstructorDeclaration(int modifiers) : Token t;} { [ TypeParameters() ] - FormalParameters() [ "throws" NameList() ] + t= {jjtThis.setImage(t.image);} FormalParameters() [ "throws" NameList() ] "{" [ LOOKAHEAD(ExplicitConstructorInvocation()) ExplicitConstructorInvocation() ] ( BlockStatement() )*