Skip to content

Commit

Permalink
Merge pull request #614 from xuwei-k/patch-1
Browse files Browse the repository at this point in the history
add explicit type for implicit
  • Loading branch information
eed3si9n authored Oct 4, 2023
2 parents a7113c6 + 8ee4229 commit a5895bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/main/scala/scalaxb/compiler/Module.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit a5895bb

Please sign in to comment.