From 8ee4229d8270991de09f8748c6f8ca5074615d4c Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Thu, 5 Oct 2023 07:46:19 +0900 Subject: [PATCH] add explicit type for implicit --- cli/src/main/scala/scalaxb/compiler/Module.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/main/scala/scalaxb/compiler/Module.scala b/cli/src/main/scala/scalaxb/compiler/Module.scala index 1b890c81..af306380 100644 --- a/cli/src/main/scala/scalaxb/compiler/Module.scala +++ b/cli/src/main/scala/scalaxb/compiler/Module.scala @@ -51,7 +51,7 @@ trait CanBeWriter[A] { def newInstance(packageName: Option[String], fileName: String): A } object CanBeWriter { - implicit val stringWriter = new CanBeWriter[java.io.StringWriter] { + implicit val stringWriter: CanBeWriter[java.io.StringWriter] = new CanBeWriter[java.io.StringWriter] { override def toWriter(value: java.io.StringWriter) = new PrintWriter(value) override def newInstance(packageName: Option[String], fileName: String) = new java.io.StringWriter } @@ -121,7 +121,7 @@ trait Module { def swapTargetNamespace(outerNamespace: Option[String], n: Int): Importable } - implicit val fileReader = new CanBeRawSchema[File, RawSchema] { + implicit val fileReader: CanBeRawSchema[File, RawSchema] = new CanBeRawSchema[File, RawSchema] { override def toRawSchema(value: File) = readerToRawSchema(UnicodeFileReader.reader(value)) override def toURI(value: File) = value.toURI }