From ed9658d5cb29fc281674e85d4e38cc4817caa643 Mon Sep 17 00:00:00 2001 From: Rahul Kumar Date: Fri, 4 Sep 2020 16:51:55 +0530 Subject: [PATCH] Corrected Javadoc --- src/main/java/org/json/XMLParserConfiguration.java | 6 +++--- src/main/java/org/json/XMLXsiTypeConverter.java | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) 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);