update flycheck-java to work with current flycheck, minor cleanups