-
Notifications
You must be signed in to change notification settings - Fork 970
Closed
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p3This is a minor priority issueThis is a minor priority issue
Description
Describe the bug
It doesn't make sense to copy a byte array in AsyncRequestBody#fromBytes and AsyncRequestBody#fromByteBuffer since the byte array is copied in the constructor of ByteArrayAsyncRequestBody afterwards.
Possible Solution
I think the best solution will be to copy the byte array in the constructor of ByteArrayAsyncRequestBody. Another constructor should be added to accept offset and length in order to support copying from ByteBuffer.
Your Environment
- AWS Java SDK version used:
2.7.15
Metadata
Metadata
Assignees
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p3This is a minor priority issueThis is a minor priority issue