Skip to content

Commit 06c83c3

Browse files
abhinav-qlogicsduskis
authored andcommitted
deprecated warnings removed (#5304)
1 parent 774e6f8 commit 06c83c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud

google-cloud-clients/google-cloud-core/src/main/java/com/google/cloud/ByteArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public final void copyTo(ByteBuffer target) {
117117
* @throws IndexOutOfBoundsException if the target is not large enough to hold the data
118118
*/
119119
public final void copyTo(byte[] target) {
120-
byteString.copyTo(target, 0, 0, length());
120+
byteString.copyTo(target, 0);
121121
}
122122

123123
/** Creates a {@code ByteArray} object given an array of bytes. The bytes are copied. */

0 commit comments

Comments
 (0)