Skip to content

Commit

Permalink
fix errors in javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
UrielCh committed Apr 23, 2021
1 parent 78c71db commit 604281d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions json-smart/src/main/java/net/minidev/json/JSONValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,12 @@ public static void writeJSONString(Object value, Appendable out) throws IOExcept
public final static JsonReader defaultReader = new JsonReader();

/**
* remap field from java to json.
* Remap field from java to json, useful to avoid protected keyword in java class.
*
* @since 2.1.1
* @param type type to alter
* @param jsonFieldName field name in json
* @param javaFieldName field name in java
*/
public static <T> void remapField(Class<T> type, String jsonFieldName, String javaFieldName) {
defaultReader.remapField(type, jsonFieldName, javaFieldName);
Expand Down Expand Up @@ -623,7 +627,7 @@ public static String toJSONString(Object value) {
* both JSONAware and Map or List with "this" as the parameter, use
* JSONObject.toJSONString(Map) or JSONArray.toJSONString(List) instead.
*
* @param object to serialize
* @param value to serialize
* @param compression serialisation options
*
* @see JSONObject#toJSONString(Map)
Expand Down

0 comments on commit 604281d

Please sign in to comment.