@@ -1501,13 +1501,14 @@ public <T> T ToObject(java.lang.reflect.Type t, PODOptions options) {
15011501 * in which the rules regarding the number of days in each month and
15021502 * which years are leap years are the same for all years as they were
15031503 * in 1970 (including without regard to transitions from other
1504- * calendars to the Gregorian). For tag 1, CBOR objects that express
1505- * infinity or not-a-number (NaN) are treated as invalid by this
1506- * method.</li> <li>If the type is <code>java.net.URI</code> (or <code>URI</code> in Java),
1507- * returns a URI object if possible.</li> <li>If the type is
1508- * <code>java.util.UUID</code> (or <code>UUID</code> in Java), returns a UUID object if
1509- * possible.</li> <li>Plain-Old-Data deserialization: If the object is
1510- * a type not specially handled above, the type includes a
1504+ * calendars to the Gregorian). The string format used in tag 0
1505+ * supports only years up to 4 decimal digits long. For tag 1, CBOR
1506+ * objects that express infinity or not-a-number (NaN) are treated as
1507+ * invalid by this method.</li> <li>If the type is <code>java.net.URI</code> (or
1508+ * <code>URI</code> in Java), returns a URI object if possible.</li> <li>If
1509+ * the type is <code>java.util.UUID</code> (or <code>UUID</code> in Java), returns a UUID
1510+ * object if possible.</li> <li>Plain-Old-Data deserialization: If the
1511+ * object is a type not specially handled above, the type includes a
15111512 * zero-parameter constructor (default or not), this CBOR object is a
15121513 * CBOR map, and the "mapper" parameter (if any) allows this type to be
15131514 * eligible for Plain-Old-Data deserialization, then this method checks
@@ -5499,8 +5500,8 @@ public CBORObject Set(Object key, Object valueOb) {
54995500 * untagged text strings are converted to JSON strings before writing
55005501 * them out (for example, <code>22("Test")</code> is converted to
55015502 * <code>"Test"</code> and <code>true</code> is converted to <code>"true"</code>). After
5502- * such conversion, if two or more map keys are identical, this method
5503- * throws a CBORException. The example code given in
5503+ * such conversion, if two or more keys for the same map are identical,
5504+ * this method throws a CBORException. The example code given in
55045505 * <b>PeterO.Cbor.CBORObject.ToJSONString(PeterO.Cbor.JSONOptions)</b>
55055506 * can be used to write out certain keys of a CBOR map in a given order
55065507 * to a JSON string, or to write out a CBOR object as part of a JSON
@@ -5535,18 +5536,18 @@ public String ToJSONString() {
55355536 * was created using the NewOrderedMap method. Map keys other than
55365537 * untagged text strings are converted to JSON strings before writing
55375538 * them out (for example, <code>22("Test")</code> is converted to
5538- * <code>"Test"</code> and <code>true</code> is converted to <code>"true"</code>). If,
5539- * after such conversion, two or more map keys are identical, this
5540- * method throws a CBORException.</li> <li>If a number in the form of
5541- * an arbitrary-precision binary floating-point number has a very high
5542- * binary exponent, it will be converted to a double before being
5539+ * <code>"Test"</code> and <code>true</code> is converted to <code>"true"</code>). After
5540+ * such conversion, if two or more keys for the same map are identical,
5541+ * this method throws a CBORException.</li> <li>If a number in the form
5542+ * of an arbitrary-precision binary floating-point number has a very
5543+ * high binary exponent, it will be converted to a double before being
55435544 * converted to a JSON string. (The resulting double could overflow to
55445545 * infinity, in which case the arbitrary-precision binary
55455546 * floating-point number is converted to null.)</li> <li>The string
55465547 * will not begin with a byte-order mark (U+FEFF); RFC 8259 (the JSON
55475548 * specification) forbids placing a byte-order mark at the beginning of
55485549 * a JSON string.</li> <li>Byte strings are converted to Base64 URL
5549- * without whitespace or padding by default (see section 4.1 of RFC
5550+ * without whitespace or padding by default (see section 3.4.5.3 of RFC
55505551 * 8949). A byte string will instead be converted to traditional base64
55515552 * without whitespace and with padding if it has tag 22, or base16 for
55525553 * tag 23. (To create a CBOR object with a given tag, call the
0 commit comments