From e1c552d9ebebb998970a3fd016648b2339f5c895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Sun, 25 Oct 2020 11:37:02 +0100 Subject: [PATCH] Remove weird valid java files Probably old typos. They probably meant to ignore trailing characters, we don't (they must be eg comments or whitespace) --- pmd-java/etc/grammar/Java.jjt | 2 -- 1 file changed, 2 deletions(-) diff --git a/pmd-java/etc/grammar/Java.jjt b/pmd-java/etc/grammar/Java.jjt index 5fcf6d995d..113c24e954 100644 --- a/pmd-java/etc/grammar/Java.jjt +++ b/pmd-java/etc/grammar/Java.jjt @@ -923,8 +923,6 @@ ASTCompilationUnit CompilationUnit() : // a module (most common case) [ LOOKAHEAD(ModuleDeclLahead()) ModuleDeclaration() ( EmptyDeclaration() )* ] ( TypeDeclaration() ( EmptyDeclaration() )* )* - ( < "\u001a" > )? - ( < "~[]" > )? // what's this for? Do you mean ( < ~[] > )*, i.e. "any character"? { jjtThis.setComments(token_source.comments);