Skip to content

Commit

Permalink
Update Scala 2 to 2.12.20 and 2.13.16 (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
plokhotnyuk authored Jan 26, 2025
1 parent 57b2059 commit 8e72213
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
fail-fast: false
matrix:
java: ['temurin:17', 'temurin:21']
scala: ['2.12.19', '2.13.15', '3.3.4']
scala: ['2.12.20', '2.13.16', '3.3.4']
platform: ['JVM', 'Native', 'JS']
steps:
- uses: actions/[email protected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,8 @@ object DeriveSchema {
} else {
annotations :+
q"new _root_.zio.schema.annotation.fieldDefaultValue[${symbol.typeSignature}](${defaultConstructorValues(i)})"

}

}.filter(_ != EmptyTree)
}
}.getOrElse(Nil)

val fieldValidations: List[Tree] =
Expand All @@ -324,11 +322,10 @@ object DeriveSchema {
c.warning(c.enclosingPosition, s"Unhandled annotation tree $tree")
EmptyTree
}
}
}.filter(_ != EmptyTree)
.map(_.foldLeft[c.universe.Tree](q"_root_.zio.schema.validation.Validation.succeed") {
}.foldLeft[c.universe.Tree](q"_root_.zio.schema.validation.Validation.succeed") {
case (acc, t) => q"$acc && $t"
})
}
}
}.getOrElse(Nil)

if (arity > 22) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1554,7 +1554,6 @@ object JsonCodec {

override def -(key: String): collection.Map[String, Any] = ???

@scala.annotation.nowarn
override def -(key1: String, key2: String, keys: String*): collection.Map[String, Any] = ???

override def get(key: String): Option[Any] = ???
Expand Down

0 comments on commit 8e72213

Please sign in to comment.