Scala

Scala

Made by DeepSource

Using of braces in import statements is discouraged if importing a single entity SC-R1060

Anti-pattern
Major

Braces allow you to import multiple entities from a single package. However if you wish to import a single entity, consider dropping the braces and specifying the entity's name directly instead. This is cleaner and easier to read.

Bad Practice

import scala.collection.mutable.{HashMap}

Recommended

import scala.collection.mutable.HashMap