Skip to content

Commit

Permalink
Fix compilation wrt Jackson 3.0/JsonNode changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Dec 30, 2024
1 parent 109bb6f commit 2518c5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: _*)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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: _*)
}
}

0 comments on commit 2518c5f

Please sign in to comment.