[SPARK-1406] Fixed scala style