Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can also use the IntelliJ import organizer plugin can organize imports for you.  Use this configuration for the plugin (configured under Preferences / Editor / Code Style / Scala Imports Organizer):

Code Block
import java.*
import javax.*
import scala.*
import *
import org.apache.spark.*

 

Infix Methods

Don't use infix notation for methods that aren't operators. For example, instead of list map func, use list.map(func), or instead of string contains "foo", use string.contains("foo"). This is to improve familiarity to developers coming from other languages.

...