diff --git a/src/main/java/org/json/XMLParserConfiguration.java b/src/main/java/org/json/XMLParserConfiguration.java index 625d463..144c92a 100644 --- a/src/main/java/org/json/XMLParserConfiguration.java +++ b/src/main/java/org/json/XMLParserConfiguration.java @@ -259,7 +259,7 @@ public class XMLParserConfiguration { /** * When parsing the XML into JSON, specifies that the values with attribute xsi:type * will be converted to target type defined to client in this configuration - * Map> to parse values with attribute + * {@code Map>} to parse values with attribute * xsi:type="integer" as integer, xsi:type="string" as string * @return {@link #xsiTypeMap} unmodifiable configuration map. */ @@ -270,9 +270,9 @@ public class XMLParserConfiguration { /** * When parsing the XML into JSON, specifies that the values with attribute xsi:type * will be converted to target type defined to client in this configuration - * Map> to parse values with attribute + * {@code Map>} to parse values with attribute * xsi:type="integer" as integer, xsi:type="string" as string - * @param xsiTypeMap new HashMap>() to parse values with attribute + * @param xsiTypeMap {@code new HashMap>()} to parse values with attribute * xsi:type="integer" as integer, xsi:type="string" as string * @return The existing configuration will not be modified. A new configuration is returned. */ diff --git a/src/main/java/org/json/XMLXsiTypeConverter.java b/src/main/java/org/json/XMLXsiTypeConverter.java index e97fc94..0f8a8c3 100644 --- a/src/main/java/org/json/XMLXsiTypeConverter.java +++ b/src/main/java/org/json/XMLXsiTypeConverter.java @@ -26,14 +26,14 @@ SOFTWARE. /** * Type conversion configuration interface to be used with xsi:type attributes. *
- * 

XML Sample

+ * XML Sample * {@code * * 12345 * 54321 * * } - *

JSON Output

+ * JSON Output * {@code * { * "root" : { @@ -43,23 +43,23 @@ SOFTWARE. * } * } * - *

Usage

+ * Usage * {@code * Map> xsiTypeMap = new HashMap>(); * xsiTypeMap.put("string", new XMLXsiTypeConverter() { - * @Override public String convert(final String value) { + * @Override public String convert(final String value) { * return value; * } * }); * xsiTypeMap.put("integer", new XMLXsiTypeConverter() { - * @Override public Integer convert(final String value) { + * @Override public Integer convert(final String value) { * return Integer.valueOf(value); * } * }); * } *
* @author kumar529 - * @param + * @param return type of convert method */ public interface XMLXsiTypeConverter { T convert(String value);