Fix Java file type pattern