apply java compiler rules
fixes some lint rule violations