Skip to content

Commit 734accc

Browse files
committed
update Java version
1 parent acf0885 commit 734accc

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

api/com.upokecenter.cbor.CBORObject.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,8 @@ Use the EInteger version of this method.
431431
* `static void Write(BigInteger bigint,
432432
OutputStream stream)`<br>
433433
Deprecated.
434-
Pass an EInteger to this method instead.
435-
Pass an EInteger to this method instead.
434+
Pass an EInteger to the Write method instead.
435+
Pass an EInteger to the Write method instead.
436436
* `static void Write(boolean value,
437437
OutputStream stream)`<br>
438438
Writes a Boolean value in CBOR format to a data stream.
@@ -1331,7 +1331,7 @@ Generates a CBORObject from an arbitrary object. The following types are
13311331
(<code>Enum</code> objects); and maps. <p>In the .NET version, if the
13321332
object is a type not specially handled by this method, returns a CBOR
13331333
map with the values of each of its read/write properties (or all
1334-
properties in the case of an anonymous type). Properties are
1334+
properties in the case of a compiler-generated type). Properties are
13351335
converted to their camel-case names (meaning if a name starts with A
13361336
to Z, that letter is lower-cased). If the property name begins with
13371337
the word "Is", that word is deleted from the name. Also, .NET
@@ -1344,10 +1344,10 @@ Generates a CBORObject from an arbitrary object. The following types are
13441344
found, the starting word "get" or "is" is deleted from its name, and
13451345
the name is converted to camel case (meaning if a name starts with A
13461346
to Z, that letter is lower-cased). Also, Java <code>Enum</code> objects
1347-
will be converted to the result of their name method.</p> <p>If the
1348-
input is a byte array, the byte array is copied to a new byte array.
1349-
(This method can't be used to decode CBOR data from a byte array; for
1350-
that, use the DecodeFromBytes method instead.).</p>
1347+
will be converted to the result of their <code>name</code> method.</p>
1348+
<p>If the input is a byte array, the byte array is copied to a new
1349+
byte array. (This method can't be used to decode CBOR data from a
1350+
byte array; for that, use the DecodeFromBytes method instead.).</p>
13511351

13521352
**Parameters:**
13531353

@@ -1791,7 +1791,7 @@ Writes a decimal floating-point number in CBOR format to a data stream, as
17911791

17921792
### Write
17931793
@Deprecated public static void Write(BigInteger bigint, OutputStream stream) throws IOException
1794-
Deprecated.&nbsp;Pass an EInteger to this method instead.
1794+
Deprecated.&nbsp;Pass an EInteger to the Write method instead.
17951795

17961796
**Parameters:**
17971797

src/main/java/com/upokecenter/cbor/CBORObject.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ public static <TKey, TValue> CBORObject FromObject(Map<TKey,
12541254
* (<code>Enum</code> objects); and maps. <p>In the .NET version, if the
12551255
* object is a type not specially handled by this method, returns a CBOR
12561256
* map with the values of each of its read/write properties (or all
1257-
* properties in the case of an anonymous type). Properties are
1257+
* properties in the case of a compiler-generated type). Properties are
12581258
* converted to their camel-case names (meaning if a name starts with A
12591259
* to Z, that letter is lower-cased). If the property name begins with
12601260
* the word "Is", that word is deleted from the name. Also, .NET
@@ -1267,10 +1267,10 @@ public static <TKey, TValue> CBORObject FromObject(Map<TKey,
12671267
* found, the starting word "get" or "is" is deleted from its name, and
12681268
* the name is converted to camel case (meaning if a name starts with A
12691269
* to Z, that letter is lower-cased). Also, Java <code>Enum</code> objects
1270-
* will be converted to the result of their name method.</p> <p>If the
1271-
* input is a byte array, the byte array is copied to a new byte array.
1272-
* (This method can't be used to decode CBOR data from a byte array; for
1273-
* that, use the DecodeFromBytes method instead.).</p>
1270+
* will be converted to the result of their <code>name</code> method.</p>
1271+
* <p>If the input is a byte array, the byte array is copied to a new
1272+
* byte array. (This method can't be used to decode CBOR data from a
1273+
* byte array; for that, use the DecodeFromBytes method instead.).</p>
12741274
* @param obj The parameter {@code obj} is an arbitrary object.
12751275
* @return A CBOR object corresponding to the given object. Returns
12761276
* CBORObject.Null if the object is null.
@@ -1956,7 +1956,7 @@ public static void Write(EDecimal bignum, OutputStream stream) throws java.io.IO
19561956
* @param stream A writable data stream.
19571957
* @throws java.lang.NullPointerException The parameter {@code stream} is null.
19581958
* @throws java.io.IOException An I/O error occurred.
1959-
* @deprecated Pass an EInteger to this method instead.
1959+
* @deprecated Pass an EInteger to the Write method instead.
19601960
*/
19611961
@Deprecated
19621962
public static void Write(BigInteger bigint, OutputStream stream) throws java.io.IOException {

0 commit comments

Comments
 (0)