diff --git a/pmd-java/etc/grammar/Java.jjt b/pmd-java/etc/grammar/Java.jjt index 689c5ed766..2072359aad 100644 --- a/pmd-java/etc/grammar/Java.jjt +++ b/pmd-java/etc/grammar/Java.jjt @@ -2595,7 +2595,7 @@ void MemberValue(): void MemberValueArrayInitializer(): {} { - "{" (MemberValue() ( LOOKAHEAD(2) "," MemberValue() )* [ "," ])? "}" + "{" (MemberValue() ( LOOKAHEAD(2) "," MemberValue() )*)? [ "," ] "}" } /*