Yang Jie created SPARK-47523: -------------------------------- Summary: Replace Deprecated `JsonParser#getCurrentName` with `JsonParser#currentName` Key: SPARK-47523 URL: https://issues.apache.org/jira/browse/SPARK-47523 Project: Spark Issue Type: Improvement Components: SQL Affects Versions: 4.0.0 Reporter: Yang Jie
[https://github.com/FasterXML/jackson-core/blob/8fba680579885bf9cdae72e93f16de557056d6e3/src/main/java/com/fasterxml/jackson/core/JsonParser.java#L1521-L1551] {code:java} /** * Deprecated alias of {@link #currentName()}. * * @return Name of the current field in the parsing context * * @throws IOException for low-level read issues, or * {@link JsonParseException} for decoding problems * * @deprecated Since 2.17 use {@link #currentName} instead. */ @Deprecated public abstract String getCurrentName() throws IOException; /** * Method that can be called to get the name associated with * the current token: for {@link JsonToken#FIELD_NAME}s it will * be the same as what {@link #getText} returns; * for field values it will be preceding field name; * and for others (array values, root-level values) null. * * @return Name of the current field in the parsing context * * @throws IOException for low-level read issues, or * {@link JsonParseException} for decoding problems * * @since 2.10 */ public String currentName() throws IOException { // !!! TODO: switch direction in 2.18 or later return getCurrentName(); } {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org