From 2518c5f22c266dd739cb231ebcb8d0316e50f6ce Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Sun, 29 Dec 2024 17:04:29 -0800 Subject: [PATCH] Fix compilation wrt Jackson 3.0/JsonNode changes --- .../module/scala/deser/ImmutableBitSetDeserializer.scala | 2 +- .../jackson/module/scala/deser/MutableBitSetDeserializer.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/tools/jackson/module/scala/deser/ImmutableBitSetDeserializer.scala b/src/main/scala/tools/jackson/module/scala/deser/ImmutableBitSetDeserializer.scala index 46f39ce86..4b4114bf6 100644 --- a/src/main/scala/tools/jackson/module/scala/deser/ImmutableBitSetDeserializer.scala +++ b/src/main/scala/tools/jackson/module/scala/deser/ImmutableBitSetDeserializer.scala @@ -25,7 +25,7 @@ object ImmutableBitSetDeserializer extends StdDeserializer[immutable.BitSet](cla override def deserialize(p: JsonParser, ctxt: DeserializationContext): immutable.BitSet = { val arrayNodeDeserializer = JsonNodeDeserializer.getDeserializer(classOf[ArrayNode]) val arrayNode = arrayNodeDeserializer.deserialize(p, ctxt).asInstanceOf[ArrayNode] - val elements = arrayNode.elements().asScala.toSeq.map(_.asInt()) + val elements = arrayNode.values().asScala.toSeq.map(_.asInt()) immutable.BitSet(elements: _*) } } diff --git a/src/main/scala/tools/jackson/module/scala/deser/MutableBitSetDeserializer.scala b/src/main/scala/tools/jackson/module/scala/deser/MutableBitSetDeserializer.scala index 3d087bc22..1b8de7e21 100644 --- a/src/main/scala/tools/jackson/module/scala/deser/MutableBitSetDeserializer.scala +++ b/src/main/scala/tools/jackson/module/scala/deser/MutableBitSetDeserializer.scala @@ -25,7 +25,7 @@ object MutableBitSetDeserializer extends StdDeserializer[mutable.BitSet](classOf override def deserialize(p: JsonParser, ctxt: DeserializationContext): mutable.BitSet = { val arrayNodeDeserializer = JsonNodeDeserializer.getDeserializer(classOf[ArrayNode]) val arrayNode = arrayNodeDeserializer.deserialize(p, ctxt).asInstanceOf[ArrayNode] - val elements = arrayNode.elements().asScala.toSeq.map(_.asInt()) + val elements = arrayNode.values().asScala.toSeq.map(_.asInt()) mutable.BitSet(elements: _*) } }