fix #3 Only checks .java files when at least one .java file needs checking.