Clean Java code that deals with filenames or paths
Remove grammar cache from use when disabled #1678