apply java compiler rules
fixes some lint rule violations
Merge pull request #1 from apoku/master

applies rules for Java compiler and lint