upgrade to jackson 2.14.2 (#273)
* upgrade to jackson 2.14.2 * scala 3.2.2 needed * another deprecation issue * ignore deprecation warnings in Scala 3 build * Update PekkoDisciplinePlugin.scala * scala 3.2 compile issues * more scala upgrade issues * import order * Update actor-typed-tests/src/test/scala/docs/org/apache/pekko/typed/InteractionPatternsSpec.scala Co-authored-by: Johannes Rudolph <johannes.rudolph@gmail.com> --------- Co-authored-by: Johannes Rudolph <johannes.rudolph@gmail.com>
This commit is contained in:
parent
198d0eb017
commit
321c572114
9 changed files with 33 additions and 42 deletions
|
|
@ -15,7 +15,7 @@ package org.apache.pekko.serialization.jackson
|
|||
|
||||
import java.util.Optional
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
|
||||
import scala.annotation.nowarn
|
||||
import scala.collection.immutable
|
||||
import scala.compat.java8.OptionConverters._
|
||||
import scala.util.Failure
|
||||
|
|
@ -40,7 +40,6 @@ import com.fasterxml.jackson.databind.SerializationFeature
|
|||
import com.fasterxml.jackson.databind.json.JsonMapper
|
||||
import com.fasterxml.jackson.module.paramnames.ParameterNamesModule
|
||||
import com.typesafe.config.Config
|
||||
|
||||
import org.apache.pekko
|
||||
import pekko.actor.ActorSystem
|
||||
import pekko.actor.ClassicActorSystemProvider
|
||||
|
|
@ -136,6 +135,7 @@ object JacksonObjectMapperProvider extends ExtensionId[JacksonObjectMapperProvid
|
|||
jsonFactory
|
||||
}
|
||||
|
||||
@nowarn("msg=deprecated")
|
||||
private def configureObjectMapperFeatures(
|
||||
bindingName: String,
|
||||
objectMapper: ObjectMapper,
|
||||
|
|
|
|||
|
|
@ -18,10 +18,13 @@ import org.apache.pekko.serialization.jackson.JacksonMigration
|
|||
import com.fasterxml.jackson.databind.JsonNode
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode
|
||||
|
||||
import scala.annotation.nowarn
|
||||
|
||||
class CustomerMigration extends JacksonMigration {
|
||||
|
||||
override def currentVersion: Int = 2
|
||||
|
||||
@nowarn("msg=deprecated")
|
||||
override def transform(fromVersion: Int, json: JsonNode): JsonNode = {
|
||||
val root = json.asInstanceOf[ObjectNode]
|
||||
if (fromVersion <= 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue