Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
* @param <UploadType> the expected uploaded item
*/
public class ChunkedUploadResponseHandler<UploadType>
implements IStatefulResponseHandler<ChunkedUploadResult, UploadType> {
implements IStatefulResponseHandler<ChunkedUploadResult<UploadType>, UploadType> {
/**
* The expected deserialized upload type
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public ChunkedUploadRequest(final String requestUrl,
* @param <UploadType> The upload item type.
* @return The upload result.
*/
@SuppressWarnings("unchecked")
public <UploadType> ChunkedUploadResult<UploadType> upload(
final ChunkedUploadResponseHandler<UploadType> responseHandler) {
while (this.retryCount < this.maxRetry) {
Expand All @@ -110,7 +111,7 @@ public <UploadType> ChunkedUploadResult<UploadType> upload(
result = this.baseRequest
.getClient()
.getHttpProvider()
.send(baseRequest, ChunkedUploadResult.class, this.data, responseHandler);
.send(baseRequest, (Class<ChunkedUploadResult<UploadType>>)(Class<?>) ChunkedUploadResult.class, this.data, responseHandler);
} catch (final ClientException e) {
throw new ClientException("Request failed with error, retry if necessary.", e);
}
Expand Down