Skip to content

Commit ca5a735

Browse files
committed
Move import
1 parent 5f8d112 commit ca5a735

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 =>
@@ -724,25 +725,14 @@ object Symbols {
724725

725726
def clear(): Unit = value.clear()
726727

727-
def filter(p: ((Symbol, T)) => Boolean): Map[Symbol, T] = {
728-
import scala.collection.JavaConverters._
728+
def filter(p: ((Symbol, T)) => Boolean): Map[Symbol, T] =
729729
value.asScala.toMap.filter(p)
730-
}
731730

732-
def iterator: Iterator[(Symbol, T)] = {
733-
import scala.collection.JavaConverters._
734-
value.asScala.iterator
735-
}
731+
def iterator: Iterator[(Symbol, T)] = value.asScala.iterator
736732

737-
def keysIterator: Iterator[Symbol] = {
738-
import scala.collection.JavaConverters._
739-
value.keySet().asScala.iterator
740-
}
733+
def keysIterator: Iterator[Symbol] = value.keySet().asScala.iterator
741734

742-
def toMap: Map[Symbol, T] = {
743-
import scala.collection.JavaConverters._
744-
value.asScala.toMap
745-
}
735+
def toMap: Map[Symbol, T] = value.asScala.toMap
746736
}
747737

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

0 commit comments

Comments
 (0)