perhaps change that as well? throughout spark codebase (and almost every other scala project) we rely on type inference when the type is very obvious. 

The exception to this rule is when it's a public method (as specified by the scala style guide).