diff --git a/client/src/main/scala/org/apache/toree/kernel/protocol/v5/client/Utilities.scala b/client/src/main/scala/org/apache/toree/kernel/protocol/v5/client/Utilities.scala index d0661ac1..b1fc1549 100644 --- a/client/src/main/scala/org/apache/toree/kernel/protocol/v5/client/Utilities.scala +++ b/client/src/main/scala/org/apache/toree/kernel/protocol/v5/client/Utilities.scala @@ -79,7 +79,7 @@ object Utilities extends LogLike { } implicit def KernelMessageToZMQMessage(kernelMessage : KernelMessage) : ZMQMessage = { - val frames: mutable.ListBuffer[ByteString] = scala.collection.mutable.ListBuffer() + val frames: mutable.ListBuffer[ByteString] = mutable.ListBuffer() kernelMessage.ids.map((id: Array[Byte]) => frames += ByteString.apply(id)) frames += "" frames += kernelMessage.signature diff --git a/kernel-api/src/main/scala/org/apache/toree/dependencies/CoursierDependencyDownloader.scala b/kernel-api/src/main/scala/org/apache/toree/dependencies/CoursierDependencyDownloader.scala index fb88aad5..a7e8478e 100644 --- a/kernel-api/src/main/scala/org/apache/toree/dependencies/CoursierDependencyDownloader.scala +++ b/kernel-api/src/main/scala/org/apache/toree/dependencies/CoursierDependencyDownloader.scala @@ -105,7 +105,7 @@ class CoursierDependencyDownloader extends DependencyDownloader { artifactClassifier.map(c => Classifier(c)).getOrElse(Classifier.empty) ) } - )) + ).toSeq) printStream.println(s"Marking $groupId:$artifactId:$version for download") diff --git a/kernel-api/src/main/scala/org/apache/toree/dependencies/DependencyDownloader.scala b/kernel-api/src/main/scala/org/apache/toree/dependencies/DependencyDownloader.scala index 666055fc..36f8b50c 100644 --- a/kernel-api/src/main/scala/org/apache/toree/dependencies/DependencyDownloader.scala +++ b/kernel-api/src/main/scala/org/apache/toree/dependencies/DependencyDownloader.scala @@ -54,14 +54,14 @@ abstract class DependencyDownloader { transitive: Boolean = true, excludeBaseDependencies: Boolean = true, ignoreResolutionErrors: Boolean = true, - extraRepositories: collection.Seq[(URL, Option[Credentials])] = Nil, + extraRepositories: Seq[(URL, Option[Credentials])] = Nil, verbose: Boolean = false, trace: Boolean = false, configuration: Option[String] = None, artifactType: Option[String] = None, artifactClassifier: Option[String] = None, - excludes: collection.Set[(String,String)] = collection.Set.empty - ): collection.Seq[URI] + excludes: Set[(String,String)] = Set.empty + ): Seq[URI] /** * Sets the printstream to log to. @@ -89,7 +89,7 @@ abstract class DependencyDownloader { * * @return The list of repositories as URIs */ - def getRepositories: collection.Seq[URI] + def getRepositories: Seq[URI] /** * Sets the directory where all downloaded jars will be stored. diff --git a/kernel-api/src/main/scala/org/apache/toree/dependencies/IvyDependencyDownloader.scala b/kernel-api/src/main/scala/org/apache/toree/dependencies/IvyDependencyDownloader.scala index fb53fdf0..47e6da9a 100644 --- a/kernel-api/src/main/scala/org/apache/toree/dependencies/IvyDependencyDownloader.scala +++ b/kernel-api/src/main/scala/org/apache/toree/dependencies/IvyDependencyDownloader.scala @@ -89,14 +89,14 @@ class IvyDependencyDownloader( transitive: Boolean = true, excludeBaseDependencies: Boolean, ignoreResolutionErrors: Boolean, - extraRepositories: collection.Seq[(URL, Option[Credentials])] = Nil, + extraRepositories: Seq[(URL, Option[Credentials])] = Nil, verbose: Boolean, trace: Boolean, configuration: Option[String] = None, artifactType: Option[String] = None, artifactClassifier: Option[String] = None, - excludes: collection.Set[(String,String)] = collection.Set.empty - ): collection.Seq[URI] = { + excludes: Set[(String,String)] = Set.empty + ): Seq[URI] = { // Start building the ivy.xml file val ivyFile = File.createTempFile("ivy-custom", ".xml") ivyFile.deleteOnExit() diff --git a/kernel-api/src/main/scala/org/apache/toree/utils/MultiClassLoader.scala b/kernel-api/src/main/scala/org/apache/toree/utils/MultiClassLoader.scala index aa61c570..a7cb5d9b 100644 --- a/kernel-api/src/main/scala/org/apache/toree/utils/MultiClassLoader.scala +++ b/kernel-api/src/main/scala/org/apache/toree/utils/MultiClassLoader.scala @@ -38,8 +38,8 @@ import scala.language.existentials * implementations of this class loader */ class MultiClassLoader( - private val urls: collection.Seq[URL], - private val classLoaders: collection.Seq[ClassLoader] + private val urls: Seq[URL], + private val classLoaders: Seq[ClassLoader] ) extends URLClassLoader( classLoaders.flatMap({ case urlClassLoader: URLClassLoader => urlClassLoader.getURLs.toSeq diff --git a/kernel/src/main/scala/org/apache/toree/kernel/protocol/v5/handler/CommCloseHandler.scala b/kernel/src/main/scala/org/apache/toree/kernel/protocol/v5/handler/CommCloseHandler.scala index 7f6d4b2f..2e7e6267 100644 --- a/kernel/src/main/scala/org/apache/toree/kernel/protocol/v5/handler/CommCloseHandler.scala +++ b/kernel/src/main/scala/org/apache/toree/kernel/protocol/v5/handler/CommCloseHandler.scala @@ -78,7 +78,7 @@ class CommCloseHandler( } } - private def handleParseError(invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) = { + private def handleParseError(invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]): Unit = { // TODO: Determine proper response for a parse failure logger.warn("Parse error for Comm Close! Not responding!") } diff --git a/kernel/src/main/scala/org/apache/toree/kernel/protocol/v5/handler/CommMsgHandler.scala b/kernel/src/main/scala/org/apache/toree/kernel/protocol/v5/handler/CommMsgHandler.scala index be3d37bf..ea4ffd5c 100644 --- a/kernel/src/main/scala/org/apache/toree/kernel/protocol/v5/handler/CommMsgHandler.scala +++ b/kernel/src/main/scala/org/apache/toree/kernel/protocol/v5/handler/CommMsgHandler.scala @@ -78,7 +78,7 @@ class CommMsgHandler( } } - private def handleParseError(invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) = { + private def handleParseError(invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]): Unit = { // TODO: Determine proper response for a parse failure logger.warn("Parse error for Comm Msg! Not responding!") } diff --git a/kernel/src/main/scala/org/apache/toree/kernel/protocol/v5/handler/CommOpenHandler.scala b/kernel/src/main/scala/org/apache/toree/kernel/protocol/v5/handler/CommOpenHandler.scala index 60d02889..08a33cbe 100644 --- a/kernel/src/main/scala/org/apache/toree/kernel/protocol/v5/handler/CommOpenHandler.scala +++ b/kernel/src/main/scala/org/apache/toree/kernel/protocol/v5/handler/CommOpenHandler.scala @@ -82,7 +82,7 @@ class CommOpenHandler( } } - private def handleParseError(invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) = { + private def handleParseError(invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]): Unit = { // TODO: Determine proper response for a parse failure logger.warn("Parse error for Comm Open! Not responding!") } diff --git a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/SocketConfigSpec.scala b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/SocketConfigSpec.scala index c516aeab..f276ed13 100644 --- a/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/SocketConfigSpec.scala +++ b/kernel/src/test/scala/org/apache/toree/kernel/protocol/v5/kernel/socket/SocketConfigSpec.scala @@ -71,7 +71,7 @@ class SocketConfigSpec extends AnyFunSpec with Matchers { val CompleteRequestResults = socketConfigJson.validate[SocketConfig] CompleteRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: SocketConfig) => valid ) should be (socketConfig) } diff --git a/plugins/src/main/scala/org/apache/toree/plugins/Plugin.scala b/plugins/src/main/scala/org/apache/toree/plugins/Plugin.scala index f933c13b..42f0eb82 100644 --- a/plugins/src/main/scala/org/apache/toree/plugins/Plugin.scala +++ b/plugins/src/main/scala/org/apache/toree/plugins/Plugin.scala @@ -70,31 +70,31 @@ trait Plugin { _internalPluginManager /** Represents all @init methods in the plugin. */ - @Internal private[plugins] final lazy val initMethods: collection.Seq[PluginMethod] = { + @Internal private[plugins] final lazy val initMethods: Seq[PluginMethod] = { allMethods.filter(_.isInit) } /** Represents all @destroy methods in the plugin. */ - @Internal private[plugins] final lazy val destroyMethods: collection.Seq[PluginMethod] = { + @Internal private[plugins] final lazy val destroyMethods: Seq[PluginMethod] = { allMethods.filter(_.isDestroy) } /** Represents all @event methods in the plugin. */ - @Internal private[plugins] final lazy val eventMethods: collection.Seq[PluginMethod] = { + @Internal private[plugins] final lazy val eventMethods: Seq[PluginMethod] = { allMethods.filter(_.isEvent) } /** Represents all @events methods in the plugin. */ - @Internal private[plugins] final lazy val eventsMethods: collection.Seq[PluginMethod] = { + @Internal private[plugins] final lazy val eventsMethods: Seq[PluginMethod] = { allMethods.filter(_.isEvents) } /** Represents all public/protected methods contained by this plugin. */ - private final lazy val allMethods: collection.Seq[PluginMethod] = + private final lazy val allMethods: Seq[PluginMethod] = getClass.getMethods.map(PluginMethod.apply(this, _: Method)) /** Represents mapping of event names to associated plugin methods. */ - @Internal private[plugins] final lazy val eventMethodMap: Map[String, collection.Seq[PluginMethod]] = { + @Internal private[plugins] final lazy val eventMethodMap: Map[String, Seq[PluginMethod]] = { val allEventMethods = (eventMethods ++ eventsMethods).distinct val allEventNames = allEventMethods.flatMap(_.eventNames).distinct allEventNames.map(name => diff --git a/plugins/src/main/scala/org/apache/toree/plugins/PluginManager.scala b/plugins/src/main/scala/org/apache/toree/plugins/PluginManager.scala index ba7fc763..8162f19e 100644 --- a/plugins/src/main/scala/org/apache/toree/plugins/PluginManager.scala +++ b/plugins/src/main/scala/org/apache/toree/plugins/PluginManager.scala @@ -76,7 +76,7 @@ class PluginManager( * * @return The collection of loaded plugins */ - def initialize(): collection.Seq[Plugin] = { + def initialize(): Seq[Plugin] = { val newPlugins = internalPlugins.flatMap(t => loadPlugin(t._1, t._2).toOption ).toSeq @@ -96,7 +96,7 @@ class PluginManager( // Search for plugins in our new paths, then add loaded plugins to list // NOTE: Iterator returned from plugin searcher, so avoid building a // large collection by performing all tasks together - @volatile var newPlugins = collection.Seq[Plugin]() + @volatile var newPlugins = Seq[Plugin]() pluginSearcher.search(paths: _*).foreach(ci => { // Add valid path to class loader pluginClassLoader.addURL(ci.location.toURI.toURL) @@ -162,7 +162,7 @@ class PluginManager( def initializePlugins( plugins: Seq[Plugin], scopedDependencyManager: DependencyManager = DependencyManager.Empty - ): collection.Seq[PluginMethodResult] = { + ): Seq[PluginMethodResult] = { val pluginMethods = plugins.flatMap(_.initMethods) val results = invokePluginMethods( pluginMethods, @@ -199,7 +199,7 @@ class PluginManager( plugins: Seq[Plugin], scopedDependencyManager: DependencyManager = DependencyManager.Empty, destroyOnFailure: Boolean = true - ): collection.Seq[PluginMethodResult] = { + ): Seq[PluginMethodResult] = { val pluginMethods = plugins.flatMap(_.destroyMethods) val results = invokePluginMethods( pluginMethods, @@ -278,7 +278,7 @@ class PluginManager( def fireEvent( eventName: String, scopedDependencies: Dependency[_ <: AnyRef]* - ): collection.Seq[PluginMethodResult] = { + ): Seq[PluginMethodResult] = { val dependencyManager = new DependencyManager scopedDependencies.foreach(d => dependencyManager.add(d)) fireEvent(eventName, dependencyManager) @@ -295,7 +295,7 @@ class PluginManager( def fireEvent( eventName: String, scopedDependencyManager: DependencyManager = DependencyManager.Empty - ): collection.Seq[PluginMethodResult] = { + ): Seq[PluginMethodResult] = { val methods = plugins.flatMap(_.eventMethodMap.getOrElse(eventName, Nil)) invokePluginMethods(methods.toSeq, scopedDependencyManager) @@ -313,9 +313,9 @@ class PluginManager( * @return The collection of results in order of priority */ private def invokePluginMethods( - pluginMethods: collection.Seq[PluginMethod], + pluginMethods: Seq[PluginMethod], scopedDependencyManager: DependencyManager - ): collection.Seq[PluginMethodResult] = { + ): Seq[PluginMethodResult] = { // Continue trying to invoke plugins until we finish them all or // we reach a state where no plugin can be completed val completedMethods = Array.ofDim[PluginMethodResult](pluginMethods.size) @@ -360,7 +360,7 @@ class PluginManager( * @param pluginMethods The collection of plugin methods to sort * @return The sorted plugin methods */ - private def prioritizePluginMethods(pluginMethods: collection.Seq[PluginMethod]) = + private def prioritizePluginMethods(pluginMethods: Seq[PluginMethod]) = pluginMethods .groupBy(_.priority) .flatMap(_._2.sortWith(_.plugin.priority > _.plugin.priority)) diff --git a/plugins/src/main/scala/org/apache/toree/plugins/PluginMethod.scala b/plugins/src/main/scala/org/apache/toree/plugins/PluginMethod.scala index 9f07eadd..65f4b939 100644 --- a/plugins/src/main/scala/org/apache/toree/plugins/PluginMethod.scala +++ b/plugins/src/main/scala/org/apache/toree/plugins/PluginMethod.scala @@ -34,7 +34,7 @@ case class PluginMethod( method: Method ) { /** Represents the collection of names of events this method supports. */ - lazy val eventNames: collection.Seq[String] = { + lazy val eventNames: Seq[String] = { Option(method.getAnnotation(classOf[Event])) .map(_.name()).map(Seq(_)).getOrElse(Nil) ++ Option(method.getAnnotation(classOf[Events])) diff --git a/plugins/src/main/scala/org/apache/toree/plugins/PluginSearcher.scala b/plugins/src/main/scala/org/apache/toree/plugins/PluginSearcher.scala index 9f3b6989..75fa6f92 100644 --- a/plugins/src/main/scala/org/apache/toree/plugins/PluginSearcher.scala +++ b/plugins/src/main/scala/org/apache/toree/plugins/PluginSearcher.scala @@ -105,7 +105,7 @@ class PluginSearcher { extraClasses: Map[String, ClassInfo] ): Iterator[ClassInfo] = { @tailrec def classMatches( - classesToCheck: collection.Seq[ClassInfo] + classesToCheck: Seq[ClassInfo] ): Boolean = { if (classesToCheck.isEmpty) false else if (classesToCheck.exists(_.name == ancestor)) true diff --git a/protocol/src/main/scala/org/apache/toree/kernel/protocol/v5/KMBuilder.scala b/protocol/src/main/scala/org/apache/toree/kernel/protocol/v5/KMBuilder.scala index ccc69a30..6acdeb8d 100644 --- a/protocol/src/main/scala/org/apache/toree/kernel/protocol/v5/KMBuilder.scala +++ b/protocol/src/main/scala/org/apache/toree/kernel/protocol/v5/KMBuilder.scala @@ -39,7 +39,7 @@ import org.apache.toree.kernel.protocol.v5.MessageType.MessageType * .withContentString("content").build **/ case class KMBuilder(km: KernelMessage = KernelMessage( - ids = Seq(), + ids = Seq.empty.toSeq, signature = "", header = HeaderBuilder.empty, parentHeader = HeaderBuilder.empty, @@ -49,7 +49,7 @@ case class KMBuilder(km: KernelMessage = KernelMessage( require(km != null) def withIds(newVal: Seq[Array[Byte]]) : KMBuilder = - KMBuilder(this.km.copy(ids = newVal)) + KMBuilder(this.km.copy(ids = newVal.toSeq)) def withSignature(newVal: String) : KMBuilder = KMBuilder(this.km.copy(signature = newVal)) diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/HeaderSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/HeaderSpec.scala index 92cf21c4..798ed38b 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/HeaderSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/HeaderSpec.scala @@ -63,7 +63,7 @@ class HeaderSpec extends AnyFunSpec with Matchers { val headerResults = headerJson.validate[Header] headerResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: Header) => valid ) should be (header) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ClearOutputSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ClearOutputSpec.scala index 50c01e8c..d951d7a9 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ClearOutputSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ClearOutputSpec.scala @@ -59,7 +59,7 @@ class ClearOutputSpec extends AnyFunSpec with Matchers { val CompleteRequestResults = clearOutputJson.validate[ClearOutput] CompleteRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: ClearOutput) => valid ) should be (clearOutput) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CommCloseSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CommCloseSpec.scala index 815fd16e..c0ee54c7 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CommCloseSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CommCloseSpec.scala @@ -60,7 +60,7 @@ class CommCloseSpec extends AnyFunSpec with Matchers { val CompleteRequestResults = commCloseJson.validate[CommClose] CompleteRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: CommClose) => valid ) should be (commClose) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CommMsgSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CommMsgSpec.scala index 3e353b14..a018f725 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CommMsgSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CommMsgSpec.scala @@ -88,7 +88,7 @@ class CommMsgSpec extends AnyFunSpec with Matchers { val CompleteRequestResults = commMsgJson.validate[CommMsg] CompleteRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: CommMsg) => valid ) should be (commMsg) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CommOpenSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CommOpenSpec.scala index b45b80ca..364a6b4d 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CommOpenSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CommOpenSpec.scala @@ -61,7 +61,7 @@ class CommOpenSpec extends AnyFunSpec with Matchers { val CompleteRequestResults = commOpenJson.validate[CommOpen] CompleteRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: CommOpen) => valid ) should be (commOpen) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteReplyErrorSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteReplyErrorSpec.scala index 63646c7c..47ddbf8a 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteReplyErrorSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteReplyErrorSpec.scala @@ -61,7 +61,7 @@ class CompleteReplyErrorSpec extends AnyFunSpec with Matchers { val CompleteReplyOkResults = completeReplyErrorJson.validate[CompleteReplyError] CompleteReplyOkResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: CompleteReplyError) => valid ) should be (completeReplyError) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteReplyOkSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteReplyOkSpec.scala index 95fbf7f4..eecda707 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteReplyOkSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteReplyOkSpec.scala @@ -57,7 +57,7 @@ class CompleteReplyOkSpec extends AnyFunSpec with Matchers { val CompleteReplyOkResults = completeReplyOkJson.validate[CompleteReplyOk] CompleteReplyOkResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: CompleteReplyOk) => valid ) should be (completeReplyOk) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteReplySpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteReplySpec.scala index c9754628..a37a5a3f 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteReplySpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteReplySpec.scala @@ -64,7 +64,7 @@ class CompleteReplySpec extends AnyFunSpec with Matchers { val CompleteReplyResults = completeReplyJson.validate[CompleteReply] CompleteReplyResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: CompleteReply) => valid ) should be (completeReply) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteRequestSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteRequestSpec.scala index 8e7a8f06..afec715d 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteRequestSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/CompleteRequestSpec.scala @@ -60,7 +60,7 @@ class CompleteRequestSpec extends AnyFunSpec with Matchers { val CompleteRequestResults = completeRequestJson.validate[CompleteRequest] CompleteRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: CompleteRequest) => valid ) should be (completeRequest) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ConnectReplySpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ConnectReplySpec.scala index e8a2f52d..94c6dcee 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ConnectReplySpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ConnectReplySpec.scala @@ -62,7 +62,7 @@ class ConnectReplySpec extends AnyFunSpec with Matchers { val ConnectReplyResults = connectReplyJson.validate[ConnectReply] ConnectReplyResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: ConnectReply) => valid ) should be (connectReply) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ConnectRequestSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ConnectRequestSpec.scala index e3465b81..59318110 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ConnectRequestSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ConnectRequestSpec.scala @@ -55,7 +55,7 @@ class ConnectRequestSpec extends AnyFunSpec with Matchers { val ConnectRequestResults = connectRequestJson.validate[ConnectRequest] ConnectRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: ConnectRequest) => valid ) should be (connectRequest) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/DisplayDataSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/DisplayDataSpec.scala index 0e45087d..20610429 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/DisplayDataSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/DisplayDataSpec.scala @@ -62,7 +62,7 @@ class DisplayDataSpec extends AnyFunSpec with Matchers { val displayDataResults = displayDataJson.validate[DisplayData] displayDataResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: DisplayData) => valid ) should be (displayData) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ErrorContentSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ErrorContentSpec.scala index 9095097f..ac9b57a4 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ErrorContentSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ErrorContentSpec.scala @@ -58,7 +58,7 @@ class ErrorContentSpec extends AnyFunSpec with Matchers { val CompleteRequestResults = errorJson.validate[ErrorContent] CompleteRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: ErrorContent) => valid ) should be (error) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteInputSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteInputSpec.scala index 7f2647f2..5a360a47 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteInputSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteInputSpec.scala @@ -60,7 +60,7 @@ class ExecuteInputSpec extends AnyFunSpec with Matchers { val executeInputResults = executeInputJson.validate[ExecuteInput] executeInputResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: ExecuteInput) => valid ) should be (executeInput) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplyAbortSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplyAbortSpec.scala index 33bd0f08..9669f2b8 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplyAbortSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplyAbortSpec.scala @@ -55,7 +55,7 @@ class ExecuteReplyAbortSpec extends AnyFunSpec with Matchers { val ExecuteReplyAbortResults = executeReplyAbortJson.validate[ExecuteReplyAbort] ExecuteReplyAbortResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: ExecuteReplyAbort) => valid ) should be (executeReplyAbort) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplyErrorSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplyErrorSpec.scala index df371be0..4140e5de 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplyErrorSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplyErrorSpec.scala @@ -59,7 +59,7 @@ class ExecuteReplyErrorSpec extends AnyFunSpec with Matchers { val ExecuteReplyErrorResults = executeReplyErrorJson.validate[ExecuteReplyError] ExecuteReplyErrorResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: ExecuteReplyError) => valid ) should be (executeReplyError) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplyOkSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplyOkSpec.scala index 8bf3ad2f..bb235b01 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplyOkSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplyOkSpec.scala @@ -58,7 +58,7 @@ class ExecuteReplyOkSpec extends AnyFunSpec with Matchers { val executeReplyOkResults = executeReplyOkJson.validate[ExecuteReplyOk] executeReplyOkResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: ExecuteReplyOk) => valid ) should be (executeReplyOk) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplySpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplySpec.scala index 0016ad63..d7abd0f0 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplySpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteReplySpec.scala @@ -61,7 +61,7 @@ class ExecuteReplySpec extends AnyFunSpec with Matchers { val executeReplyResults = executeReplyJson.validate[ExecuteReply] executeReplyResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: ExecuteReply) => valid ) should be (executeReply) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteRequestSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteRequestSpec.scala index e712b9c2..2678af28 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteRequestSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteRequestSpec.scala @@ -64,7 +64,7 @@ class ExecuteRequestSpec extends AnyFunSpec with Matchers { val executeRequestResults = executeRequestJson.validate[ExecuteRequest] executeRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: ExecuteRequest) => valid ) should be (executeRequest) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteResultSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteResultSpec.scala index dd40618f..e5155e58 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteResultSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ExecuteResultSpec.scala @@ -97,7 +97,7 @@ class ExecuteResultSpec extends AnyFunSpec with Matchers { val CompleteRequestResults = executeResultJson.validate[ExecuteResult] CompleteRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: ExecuteResult) => valid ) should be (executeResult) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/HistoryReplySpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/HistoryReplySpec.scala index c616c0ba..4eb13c85 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/HistoryReplySpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/HistoryReplySpec.scala @@ -62,7 +62,7 @@ class HistoryReplySpec extends AnyFunSpec with Matchers { val CompleteRequestResults = historyReplyJson.validate[HistoryReply] CompleteRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: HistoryReply) => valid ) should be (historyReply) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/HistoryRequestSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/HistoryRequestSpec.scala index 7d5cdcb3..b7934844 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/HistoryRequestSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/HistoryRequestSpec.scala @@ -67,7 +67,7 @@ class HistoryRequestSpec extends AnyFunSpec with Matchers { val CompleteRequestResults = historyRequestJson.validate[HistoryRequest] CompleteRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: HistoryRequest) => valid ) should be (historyRequest) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InputReplySpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InputReplySpec.scala index 87d47a66..5127d2d9 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InputReplySpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InputReplySpec.scala @@ -60,7 +60,7 @@ class InputReplySpec extends AnyFunSpec with Matchers { val CompleteReplyResults = inputReplyJson.validate[InputReply] CompleteReplyResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: InputReply) => valid ) should be (inputReply) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InputRequestSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InputRequestSpec.scala index 9b7b657a..ce98889b 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InputRequestSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InputRequestSpec.scala @@ -60,7 +60,7 @@ class InputRequestSpec extends AnyFunSpec with Matchers { val CompleteRequestResults = inputRequestJson.validate[InputRequest] CompleteRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: InputRequest) => valid ) should be (inputRequest) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectReplyErrorSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectReplyErrorSpec.scala index 34ab89b2..dcbb4436 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectReplyErrorSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectReplyErrorSpec.scala @@ -59,7 +59,7 @@ class InspectReplyErrorSpec extends AnyFunSpec with Matchers { val InspectReplyErrorResults = inspectReplyErrorJson.validate[InspectReplyError] InspectReplyErrorResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: InspectReplyError) => valid ) should be (inspectReplyError) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectReplyOkSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectReplyOkSpec.scala index a474cb3a..d31f349a 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectReplyOkSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectReplyOkSpec.scala @@ -57,7 +57,7 @@ class InspectReplyOkSpec extends AnyFunSpec with Matchers { val InspectReplyOkResults = inspectReplyOkJson.validate[InspectReplyOk] InspectReplyOkResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: InspectReplyOk) => valid ) should be (inspectReplyOk) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectReplySpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectReplySpec.scala index 4917cae6..5d7ab6b7 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectReplySpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectReplySpec.scala @@ -61,7 +61,7 @@ class InspectReplySpec extends AnyFunSpec with Matchers { val InspectReplyResults = inspectReplyJson.validate[InspectReply] InspectReplyResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: InspectReply) => valid ) should be (inspectReply) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectRequestSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectRequestSpec.scala index 3fb8aa83..127e720f 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectRequestSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/InspectRequestSpec.scala @@ -61,7 +61,7 @@ class InspectRequestSpec extends AnyFunSpec with Matchers { val InspectRequestResults = inspectRequestJson.validate[InspectRequest] InspectRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: InspectRequest) => valid ) should be (inspectRequest) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/KernelInfoReplySpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/KernelInfoReplySpec.scala index e10432db..4d562fbc 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/KernelInfoReplySpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/KernelInfoReplySpec.scala @@ -65,7 +65,7 @@ class KernelInfoReplySpec extends AnyFunSpec with Matchers { val kernelInfoReplyResults = kernelInfoReplyJson.validate[KernelInfoReply] kernelInfoReplyResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: KernelInfoReply) => valid ) should be (kernelInfoReply) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/KernelInfoRequestSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/KernelInfoRequestSpec.scala index 1f7cc241..a35496d2 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/KernelInfoRequestSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/KernelInfoRequestSpec.scala @@ -56,7 +56,7 @@ class KernelInfoRequestSpec extends AnyFunSpec with Matchers { val KernelInfoRequestResults = kernelInfoRequestJson.validate[KernelInfoRequest] KernelInfoRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: KernelInfoRequest) => valid ) should be (kernelInfoRequest) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/KernelStatusSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/KernelStatusSpec.scala index 814283fc..5be37963 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/KernelStatusSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/KernelStatusSpec.scala @@ -57,7 +57,7 @@ class KernelStatusSpec extends AnyFunSpec with Matchers { val kernelStatusResults = kernelStatusJson.validate[KernelStatus] kernelStatusResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: KernelStatus) => valid ) should be (kernelStatus) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ShutdownReplySpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ShutdownReplySpec.scala index 185a2e15..32e451b4 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ShutdownReplySpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ShutdownReplySpec.scala @@ -60,7 +60,7 @@ class ShutdownReplySpec extends AnyFunSpec with Matchers { val ShutdownReplyResults = shutdownReplyJson.validate[ShutdownReply] ShutdownReplyResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: ShutdownReply) => valid ) should be (shutdownReply) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ShutdownRequestSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ShutdownRequestSpec.scala index bd956416..afa4798f 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ShutdownRequestSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/ShutdownRequestSpec.scala @@ -59,7 +59,7 @@ class ShutdownRequestSpec extends AnyFunSpec with Matchers { val ShutdownRequestResults = shutdownRequestJson.validate[ShutdownRequest] ShutdownRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: ShutdownRequest) => valid ) should be (shutdownRequest) } diff --git a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/StreamContentSpec.scala b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/StreamContentSpec.scala index aeaad77a..abd66003 100644 --- a/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/StreamContentSpec.scala +++ b/protocol/src/test/scala/org/apache/toree/kernel/protocol/v5/content/StreamContentSpec.scala @@ -58,7 +58,7 @@ class StreamContentSpec extends AnyFunSpec with Matchers { val CompleteRequestResults = streamJson.validate[StreamContent] CompleteRequestResults.fold( - (invalid: collection.Seq[(JsPath, collection.Seq[JsonValidationError])]) => println("Failed!"), + (invalid: Seq[(JsPath, Seq[JsonValidationError])]) => println("Failed!"), (valid: StreamContent) => valid ) should be (stream) }