Fix Java file type pattern

First off, very cool plugin.

I was having problems with this plugin for Java files and it seems that the problem was the regex. It would be nice if you include this change in your repo. Thanks!