Fixes linting errors

Linting errors prevented Gradle build.