Skip to content

Commit

Permalink
Address some deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Feb 22, 2024
1 parent 68626e4 commit 95fe192
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ trait CoursierLogger extends Cross.Module[String] with AlmondModule {
shared.logger()
)
def ivyDeps = super.ivyDeps() ++ Agg(
Deps.collectionCompat,
Deps.coursierApi,
Deps.scalatags.applyBinaryVersion213_3(scalaVersion())
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import java.lang.{Long => JLong}
import java.util.UUID
import java.util.concurrent.ConcurrentHashMap

import scala.collection.JavaConverters._
import scala.jdk.CollectionConverters._

class NotebookCacheLogger(
publish: OutputHandler,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class KernelLauncher(

private def stackTracePrinterThread(output: TestOutput): Thread =
new Thread("stack-trace-printer") {
import scala.collection.JavaConverters._
import scala.jdk.CollectionConverters._
setDaemon(true)
override def run(): Unit =
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import ammonite.runtime.Frame
import ammonite.util.Util.newLine
import metabrowse.server.{MetabrowseServer, Sourcepath}

import scala.collection.JavaConverters._
import scala.collection.compat._
import scala.collection.mutable
import scala.jdk.CollectionConverters._
import scala.meta.dialects
import scala.tools.nsc.interactive.{Global => Interactive}
import scala.util.Random
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import scala.meta.pc.SymbolDocumentation

import java.util.Optional

import scala.collection.JavaConverters._
import scala.collection.compat._
import scala.jdk.CollectionConverters._
import scala.tools.nsc.interactive.{Global => Interactive}

final class ScalaInterpreterInspections(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import cats.effect.IO
import fs2.Stream
import utest._

import scala.collection.JavaConverters._
import scala.collection.compat._
import scala.jdk.CollectionConverters._

object ScalaKernelTests extends TestSuite {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import fs2.Stream
import java.nio.charset.StandardCharsets
import java.nio.file.Paths

import scala.collection.compat._
import scala.concurrent.ExecutionContext
import scala.concurrent.duration.Duration
import scala.concurrent.duration.FiniteDuration
Expand Down Expand Up @@ -374,7 +375,7 @@ object TestUtil {
for (k <- expectedReplies.keySet.--(replies0.keySet))
System.err.println(s"At line $k: expected ${expectedReplies(k)}, got nothing")

expect(replies0.mapValues(noCrLf).toMap == expectedReplies.mapValues(noCrLf).toMap)
expect(replies0.view.mapValues(noCrLf).toMap == expectedReplies.view.mapValues(noCrLf).toMap)
expect(publish0.map(noCrLf) == publish.map(noCrLf))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import com.eed3si9n.expecty.Expecty.expect
import java.io.File
import java.util.UUID

import scala.collection.JavaConverters._
import scala.jdk.CollectionConverters._
import scala.util.Properties

object Tests {
Expand Down

0 comments on commit 95fe192

Please sign in to comment.