Resolve -feature scala warnings.