Skip to content

Commit ed9658d

Browse files
author
Rahul Kumar
committed
Corrected Javadoc
1 parent 310f18f commit ed9658d

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/main/java/org/json/XMLParserConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public XMLParserConfiguration withConvertNilAttributeToNull(final boolean newVal
259259
/**
260260
* When parsing the XML into JSON, specifies that the values with attribute xsi:type
261261
* will be converted to target type defined to client in this configuration
262-
* <code>Map<String, XMLXsiTypeConverter<?>></code> to parse values with attribute
262+
* {@code Map<String, XMLXsiTypeConverter<?>>} to parse values with attribute
263263
* xsi:type="integer" as integer, xsi:type="string" as string
264264
* @return {@link #xsiTypeMap} unmodifiable configuration map.
265265
*/
@@ -270,9 +270,9 @@ public Map<String, XMLXsiTypeConverter<?>> getXsiTypeMap() {
270270
/**
271271
* When parsing the XML into JSON, specifies that the values with attribute xsi:type
272272
* will be converted to target type defined to client in this configuration
273-
* <code>Map<String, XMLXsiTypeConverter<?>></code> to parse values with attribute
273+
* {@code Map<String, XMLXsiTypeConverter<?>>} to parse values with attribute
274274
* xsi:type="integer" as integer, xsi:type="string" as string
275-
* @param xsiTypeMap <code>new HashMap<String, XMLXsiTypeConverter<?>>()</code> to parse values with attribute
275+
* @param xsiTypeMap {@code new HashMap<String, XMLXsiTypeConverter<?>>()} to parse values with attribute
276276
* xsi:type="integer" as integer, xsi:type="string" as string
277277
* @return The existing configuration will not be modified. A new configuration is returned.
278278
*/

src/main/java/org/json/XMLXsiTypeConverter.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ of this software and associated documentation files (the "Software"), to deal
2626
/**
2727
* Type conversion configuration interface to be used with xsi:type attributes.
2828
* <pre>
29-
* <h1>XML Sample</h1>
29+
* <b>XML Sample</b>
3030
* {@code
3131
* <root>
3232
* <asString xsi:type="string">12345</asString>
3333
* <asInt xsi:type="integer">54321</asInt>
3434
* </root>
3535
* }
36-
* <h1>JSON Output</h1>
36+
* <b>JSON Output</b>
3737
* {@code
3838
* {
3939
* "root" : {
@@ -43,23 +43,23 @@ of this software and associated documentation files (the "Software"), to deal
4343
* }
4444
* }
4545
*
46-
* <h1>Usage</h1>
46+
* <b>Usage</b>
4747
* {@code
4848
* Map<String, XMLXsiTypeConverter<?>> xsiTypeMap = new HashMap<String, XMLXsiTypeConverter<?>>();
4949
* xsiTypeMap.put("string", new XMLXsiTypeConverter<String>() {
50-
* @Override public String convert(final String value) {
50+
* &#64;Override public String convert(final String value) {
5151
* return value;
5252
* }
5353
* });
5454
* xsiTypeMap.put("integer", new XMLXsiTypeConverter<Integer>() {
55-
* @Override public Integer convert(final String value) {
55+
* &#64;Override public Integer convert(final String value) {
5656
* return Integer.valueOf(value);
5757
* }
5858
* });
5959
* }
6060
* </pre>
6161
* @author kumar529
62-
* @param <T>
62+
* @param <T> return type of convert method
6363
*/
6464
public interface XMLXsiTypeConverter<T> {
6565
T convert(String value);

0 commit comments

Comments
 (0)