Fixes CheckStyle and FindBugs errors.