Skip to content

Commit a3c55cb

Browse files
committed
swap method body of onError and handleError
1 parent 749fc3c commit a3c55cb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

services/s3/src/main/java/software/amazon/awssdk/services/s3/internal/multipart/MultipartDownloaderSubscriber.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,18 +185,18 @@ private void requestMoreIfNeeded(GetObjectResponse response) {
185185
* The method used by the Subscriber itself when error occured.
186186
*/
187187
private void handleError(Throwable t) {
188-
onError(t);
189-
}
190-
191-
@Override
192-
public void onError(Throwable t) {
193188
CompletableFuture<GetObjectResponse> partFuture;
194189
while ((partFuture = getObjectFutures.poll()) != null) {
195190
partFuture.cancel(true);
196191
}
197192
future.completeExceptionally(t);
198193
}
199194

195+
@Override
196+
public void onError(Throwable t) {
197+
handleError(t);
198+
}
199+
200200
@Override
201201
public void onComplete() {
202202
future.complete(null);

0 commit comments

Comments
 (0)