contrib/java_parser: Improved grammar

Signed-off-by: Frédéric Vachon <fredvac@gmail.com>