Skip to content

Commit 604281d

Browse files
committed
fix errors in javadoc
1 parent 78c71db commit 604281d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

json-smart/src/main/java/net/minidev/json/JSONValue.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,12 @@ public static void writeJSONString(Object value, Appendable out) throws IOExcept
540540
public final static JsonReader defaultReader = new JsonReader();
541541

542542
/**
543-
* remap field from java to json.
543+
* Remap field from java to json, useful to avoid protected keyword in java class.
544+
*
544545
* @since 2.1.1
546+
* @param type type to alter
547+
* @param jsonFieldName field name in json
548+
* @param javaFieldName field name in java
545549
*/
546550
public static <T> void remapField(Class<T> type, String jsonFieldName, String javaFieldName) {
547551
defaultReader.remapField(type, jsonFieldName, javaFieldName);
@@ -623,7 +627,7 @@ public static String toJSONString(Object value) {
623627
* both JSONAware and Map or List with "this" as the parameter, use
624628
* JSONObject.toJSONString(Map) or JSONArray.toJSONString(List) instead.
625629
*
626-
* @param object to serialize
630+
* @param value to serialize
627631
* @param compression serialisation options
628632
*
629633
* @see JSONObject#toJSONString(Map)

0 commit comments

Comments
 (0)