You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yang Jie (Jira)" <ji...@apache.org> on 2025/05/25 13:12:00 UTC

[jira] [Resolved] (SPARK-52299) Clean up the usage of deprecated APIs related to Jackson

     [ https://issues.apache.org/jira/browse/SPARK-52299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang Jie resolved SPARK-52299.
------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed

Issue resolved by pull request 51011
[https://github.com/apache/spark/pull/51011]

> Clean up the usage of deprecated APIs related to Jackson
> --------------------------------------------------------
>
>                 Key: SPARK-52299
>                 URL: https://issues.apache.org/jira/browse/SPARK-52299
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 4.1.0
>            Reporter: Yang Jie
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 4.1.0
>
>
> {code:java}
> [WARNING] [Warn] /Users/yangjie01/spark/core/src/main/scala/org/apache/spark/util/JsonProtocol.scala:1026: method fields in class JsonNode is deprecated Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.util.JsonProtocol.taskResourceRequestMapFromJson, origin=com.fasterxml.jackson.databind.JsonNode.fields [WARNING] [Warn] /Users/yangjie01/spark/core/src/main/scala/org/apache/spark/util/JsonProtocol.scala:1033: method fields in class JsonNode is deprecated Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.util.JsonProtocol.executorResourceRequestMapFromJson, origin=com.fasterxml.jackson.databind.JsonNode.fields [WARNING] [Warn] /Users/yangjie01/spark/core/src/main/scala/org/apache/spark/util/JsonProtocol.scala:1546: method fields in class JsonNode is deprecated Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.util.JsonProtocol.resourcesMapFromJson, origin=com.fasterxml.jackson.databind.JsonNode.fields [WARNING] [Warn] /Users/yangjie01/spark/core/src/main/scala/org/apache/spark/util/JsonProtocol.scala:1558: method fields in class JsonNode is deprecated Applicable -Wconf / @nowarn filters for this warning: msg=<part of the message>, cat=deprecation, site=org.apache.spark.util.JsonProtocol.mapFromJson, origin=com.fasterxml.jackson.databind.JsonNode.fields{code}
>  
>  
> should use `com.fasterxml.jackson.databind.JsonNode#properties` instead of `com.fasterxml.jackson.databind.JsonNode.fields`



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org