Fixing travis java6 compiler errors (2).