fix style warning of scala code