Scala

Scala

Made by DeepSource

Import aliases do not need to be wrapped in braces in Scala 3 SC-R1076

Anti-pattern
Major

Scala 2 required that import aliases be wrapped in braces. However, beginning with Scala 3, they are no longer needed. While the old syntax is still supported, it will be dropped in the future Scala 3 versions.

Bad Practice

import scala.collection.mutable.{HashSet as hs}

Recommended

import scala.collection.mutable.HashSet as hs

Reference