Fixing travis java6 compiler errors (3)