@@ -41,7 +41,7 @@ public class JSONML {
4141 * if we are at the outermost level.
4242 * @param keepStrings Don't type-convert text nodes and attribute values
4343 * @return A JSONArray if the value is the outermost tag, otherwise null.
44- * @throws JSONException
44+ * @throws JSONException if a parsing error occurs
4545 */
4646 private static Object parse (
4747 XMLTokener x ,
@@ -238,7 +238,7 @@ private static Object parse(
238238 * attributes, then the second element will be JSONObject containing the
239239 * name/value pairs. If the tag contains children, then strings and
240240 * JSONArrays will represent the child tags.
241- * Comments, prologs, DTDs, and <code> <[ [ ]]></code > are ignored.
241+ * Comments, prologs, DTDs, and <pre>{@code <[ [ ]]>}</pre > are ignored.
242242 * @param string The source string.
243243 * @return A JSONArray containing the structured data from the XML string.
244244 * @throws JSONException Thrown on error converting to a JSONArray
@@ -258,7 +258,7 @@ public static JSONArray toJSONArray(String string) throws JSONException {
258258 * As opposed to toJSONArray this method does not attempt to convert
259259 * any text node or attribute value to any type
260260 * but just leaves it as a string.
261- * Comments, prologs, DTDs, and <code> <[ [ ]]></code > are ignored.
261+ * Comments, prologs, DTDs, and <pre>{@code <[ [ ]]>}</pre > are ignored.
262262 * @param string The source string.
263263 * @param keepStrings If true, then values will not be coerced into boolean
264264 * or numeric values and will instead be left as strings
@@ -280,7 +280,7 @@ public static JSONArray toJSONArray(String string, boolean keepStrings) throws J
280280 * As opposed to toJSONArray this method does not attempt to convert
281281 * any text node or attribute value to any type
282282 * but just leaves it as a string.
283- * Comments, prologs, DTDs, and <code> <[ [ ]]></code > are ignored.
283+ * Comments, prologs, DTDs, and <pre>{@code <[ [ ]]>}</pre > are ignored.
284284 * @param x An XMLTokener.
285285 * @param keepStrings If true, then values will not be coerced into boolean
286286 * or numeric values and will instead be left as strings
@@ -299,7 +299,7 @@ public static JSONArray toJSONArray(XMLTokener x, boolean keepStrings) throws JS
299299 * attributes, then the second element will be JSONObject containing the
300300 * name/value pairs. If the tag contains children, then strings and
301301 * JSONArrays will represent the child content and tags.
302- * Comments, prologs, DTDs, and <code> <[ [ ]]></code > are ignored.
302+ * Comments, prologs, DTDs, and <pre>{@code <[ [ ]]>}</pre > are ignored.
303303 * @param x An XMLTokener.
304304 * @return A JSONArray containing the structured data from the XML string.
305305 * @throws JSONException Thrown on error converting to a JSONArray
@@ -317,7 +317,7 @@ public static JSONArray toJSONArray(XMLTokener x) throws JSONException {
317317 * contains children, the object will have a "childNodes" property which
318318 * will be an array of strings and JsonML JSONObjects.
319319
320- * Comments, prologs, DTDs, and <code> <[ [ ]]></code > are ignored.
320+ * Comments, prologs, DTDs, and <pre>{@code <[ [ ]]>}</pre > are ignored.
321321 * @param string The XML source text.
322322 * @return A JSONObject containing the structured data from the XML string.
323323 * @throws JSONException Thrown on error converting to a JSONObject
@@ -335,7 +335,7 @@ public static JSONObject toJSONObject(String string) throws JSONException {
335335 * contains children, the object will have a "childNodes" property which
336336 * will be an array of strings and JsonML JSONObjects.
337337
338- * Comments, prologs, DTDs, and <code> <[ [ ]]></code > are ignored.
338+ * Comments, prologs, DTDs, and <pre>{@code <[ [ ]]>}</pre > are ignored.
339339 * @param string The XML source text.
340340 * @param keepStrings If true, then values will not be coerced into boolean
341341 * or numeric values and will instead be left as strings
@@ -355,7 +355,7 @@ public static JSONObject toJSONObject(String string, boolean keepStrings) throws
355355 * contains children, the object will have a "childNodes" property which
356356 * will be an array of strings and JsonML JSONObjects.
357357
358- * Comments, prologs, DTDs, and <code> <[ [ ]]></code > are ignored.
358+ * Comments, prologs, DTDs, and <pre>{@code <[ [ ]]>}</pre > are ignored.
359359 * @param x An XMLTokener of the XML source text.
360360 * @return A JSONObject containing the structured data from the XML string.
361361 * @throws JSONException Thrown on error converting to a JSONObject
@@ -373,7 +373,7 @@ public static JSONObject toJSONObject(XMLTokener x) throws JSONException {
373373 * contains children, the object will have a "childNodes" property which
374374 * will be an array of strings and JsonML JSONObjects.
375375
376- * Comments, prologs, DTDs, and <code> <[ [ ]]></code > are ignored.
376+ * Comments, prologs, DTDs, and <pre>{@code <[ [ ]]>}</pre > are ignored.
377377 * @param x An XMLTokener of the XML source text.
378378 * @param keepStrings If true, then values will not be coerced into boolean
379379 * or numeric values and will instead be left as strings
0 commit comments