File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed
main/java/at/favre/lib/bytes
test/java/at/favre/lib/bytes Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 66* add `toCharArray()` method which decodes internal byte array to char[] #27
77* add `encodeBase64()` supporting padding-less encoding
88
9+ ### Breaking
10+
11+ * removed deprecated `toObjectArray()`; use `toBoxedArray()` instead
12+
913## v0.8.0
1014
1115* add radix encoding/parsing and fix radix tests #6, #20
Original file line number Diff line number Diff line change @@ -1733,19 +1733,12 @@ public List<Byte> toList() {
17331733 return Util .toList (internalArray ());
17341734 }
17351735
1736- /**
1737- * @return see {@link #toBoxedArray()}
1738- * @deprecated renamed API, use {@link #toBoxedArray()} instead - will be removed in v1.0+
1739- */
1740- @ Deprecated
1741- public Byte [] toObjectArray () {
1742- return toBoxedArray ();
1743- }
1744-
17451736 /**
17461737 * Returns a copy of the internal byte-array as boxed primitive array.
17471738 * This requires a time and space complexity of O(n).
17481739 *
1740+ * Note: this method was previously called <code>toObjectArray()</code>
1741+ *
17491742 * @return copy of internal array as object array
17501743 */
17511744 public Byte [] toBoxedArray () {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ private void checkArray(byte[] array) {
4545 for (int i = 0 ; i < array .length ; i ++) {
4646 assertEquals (byteArray [i ], Byte .valueOf (array [i ]));
4747 }
48- assertArrayEquals (byteArray , Bytes .from (array ).toObjectArray ());
48+ assertArrayEquals (byteArray , Bytes .from (array ).toBoxedArray ());
4949 }
5050
5151 @ Test
You can’t perform that action at this time.
0 commit comments