Skip to content

Commit c8f5d20

Browse files
authored
Merge pull request scala/scala#10527 from som-snytt/tweak/stepper-test
Improve readability of Stepper test [ci: last-only]
2 parents 62c0e6d + 8b4f237 commit c8f5d20

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

library/src/scala/collection/immutable/IntMap.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private[immutable] object IntMapUtils extends BitOperations.Int {
3838
}
3939
}
4040

41-
import IntMapUtils._
41+
import IntMapUtils.{Int => _, _}
4242

4343
/** A companion object for integer maps.
4444
*
@@ -220,7 +220,7 @@ sealed abstract class IntMap[+T] extends AbstractMap[Int, T]
220220
case IntMap.Nil =>
221221
}
222222

223-
override def foreachEntry[U](f: (IntMapUtils.Int, T) => U): Unit = this match {
223+
override def foreachEntry[U](f: (Int, T) => U): Unit = this match {
224224
case IntMap.Bin(_, _, left, right) => { left.foreachEntry(f); right.foreachEntry(f) }
225225
case IntMap.Tip(key, value) => f(key, value)
226226
case IntMap.Nil =>

library/src/scala/collection/immutable/LongMap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private[immutable] object LongMapUtils extends BitOperations.Long {
4040
}
4141
}
4242

43-
import LongMapUtils._
43+
import LongMapUtils.{Long => _, _}
4444

4545
/** A companion object for long maps.
4646
*

library/src/scala/collection/immutable/TreeSeqMap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ object TreeSeqMap extends MapFactory[TreeSeqMap] {
362362

363363
/* The ordering implementation below is an adapted version of immutable.IntMap. */
364364
private[immutable] object Ordering {
365-
import scala.collection.generic.BitOperations.Int._
365+
import scala.collection.generic.BitOperations.Int.{Int => _, _}
366366

367367
@inline private[immutable] def toBinaryString(i: Int): String = s"$i/${i.toBinaryString}"
368368

0 commit comments

Comments
 (0)