Skip to content

Commit

Permalink
improve scala compile support alibaba#1470
Browse files Browse the repository at this point in the history
  • Loading branch information
sinodzh authored and sinodzh committed May 12, 2023
1 parent 72b34f1 commit c3df34e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/src/main/java/com/alibaba/fastjson2/JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,18 @@ public Instant getInstant(String key) {
return TypeUtils.toInstant(value);
}

/**
* Returns the Object of the associated keys in this {@link JSONObject}.
*
* @param key the key whose associated value is to be returned
* @param value value to be associated with the specified key
* @return {@link Object}
* @since 2.0.32
*/
public Object put(String key, Object value) {
return super.put(key, value);
}

/**
* Serialize to JSON {@link String}
*
Expand Down

0 comments on commit c3df34e

Please sign in to comment.