Skip to content

Commit 534aff5

Browse files
committed
Move import
1 parent 6e677ba commit 534aff5

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

compiler/src/dotty/tools/dotc/core/Symbols.scala

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import collection.mutable
3131
import io.AbstractFile
3232
import language.implicitConversions
3333
import util.{NoSource, DotClass}
34+
import scala.collection.JavaConverters._
3435

3536
/** Creation methods for symbols */
3637
trait Symbols { this: Context =>
@@ -721,25 +722,14 @@ object Symbols {
721722

722723
def clear(): Unit = value.clear()
723724

724-
def filter(p: ((Symbol, T)) => Boolean): Map[Symbol, T] = {
725-
import scala.collection.JavaConverters._
725+
def filter(p: ((Symbol, T)) => Boolean): Map[Symbol, T] =
726726
value.asScala.toMap.filter(p)
727-
}
728727

729-
def iterator: Iterator[(Symbol, T)] = {
730-
import scala.collection.JavaConverters._
731-
value.asScala.iterator
732-
}
728+
def iterator: Iterator[(Symbol, T)] = value.asScala.iterator
733729

734-
def keysIterator: Iterator[Symbol] = {
735-
import scala.collection.JavaConverters._
736-
value.keySet().asScala.iterator
737-
}
730+
def keysIterator: Iterator[Symbol] = value.keySet().asScala.iterator
738731

739-
def toMap: Map[Symbol, T] = {
740-
import scala.collection.JavaConverters._
741-
value.asScala.toMap
742-
}
732+
def toMap: Map[Symbol, T] = value.asScala.toMap
743733
}
744734

745735
@inline def newMutableSymbolMap[T]: MutableSymbolMap[T] =

0 commit comments

Comments
 (0)