Skip to content

Commit 4578068

Browse files
committed
Unnecessary casting
1 parent 816578f commit 4578068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/loopj/android/http/AsyncHttpResponseHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ byte[] getResponseData(HttpEntity entity) throws IOException {
372372
}
373373
int buffersize = (contentLength < 0) ? BUFFER_SIZE : (int) contentLength;
374374
try {
375-
ByteArrayBuffer buffer = new ByteArrayBuffer((int) buffersize);
375+
ByteArrayBuffer buffer = new ByteArrayBuffer(buffersize);
376376
try {
377377
byte[] tmp = new byte[BUFFER_SIZE];
378378
int l, count = 0;

0 commit comments

Comments
 (0)