Skip to content

Commit 49b5222

Browse files
nicolasstuckinerush
authored andcommitted
Fix scala#3535: Use JavaConverters instead of JavaConversions
1 parent ddc6d6d commit 49b5222

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -725,23 +725,23 @@ object Symbols {
725725
def clear(): Unit = value.clear()
726726

727727
def filter(p: ((Symbol, T)) => Boolean): Map[Symbol, T] = {
728-
import scala.collection.JavaConversions._
729-
value.toMap.filter(p)
728+
import scala.collection.JavaConverters._
729+
value.asScala.toMap.filter(p)
730730
}
731731

732732
def iterator: Iterator[(Symbol, T)] = {
733-
import scala.collection.JavaConversions._
734-
value.iterator
733+
import scala.collection.JavaConverters._
734+
value.asScala.iterator
735735
}
736736

737737
def keysIterator: Iterator[Symbol] = {
738-
import scala.collection.JavaConversions._
739-
value.keySet().iterator
738+
import scala.collection.JavaConverters._
739+
value.keySet().asScala.iterator
740740
}
741741

742742
def toMap: Map[Symbol, T] = {
743-
import scala.collection.JavaConversions._
744-
value.toMap
743+
import scala.collection.JavaConverters._
744+
value.asScala.toMap
745745
}
746746
}
747747

0 commit comments

Comments
 (0)