Skip to content

Commit b73d898

Browse files
minor cleanup
1 parent c3a67f2 commit b73d898

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/main/java/com/microsoft/graph/http/CoreHttpProvider.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ private <Result, Body, DeserializeType> Result processResponse(final Response re
419419

420420
final Map<String, String> headers = responseHeadersHelper.getResponseHeadersAsMapStringString(response);
421421

422-
if(response.body() == null || response.body().contentLength() == 0)
423-
return (Result) null;
422+
if (response.body() == null || response.body().contentLength() == 0)
423+
return null;
424424

425425
final String contentType = headers.get(Constants.CONTENT_TYPE_HEADER_NAME);
426426
if (contentType != null && resultClass != InputStream.class &&
@@ -435,7 +435,7 @@ private <Result, Body, DeserializeType> Result processResponse(final Response re
435435
contentType.contains(Constants.TEXT_CONTENT_TYPE)) {
436436
return handleRawResponse(in, resultClass);
437437
} else {
438-
return (Result) null;
438+
return null;
439439
}
440440
} finally {
441441
if (!isBinaryStreamInput) {
@@ -463,7 +463,7 @@ private <Result, Body, DeserializeType> Result processResponse(final Response re
463463
*
464464
* @param request the request that caused the failed response
465465
* @param serializable the body of the request
466-
* @param connection the URL connection
466+
* @param response the original response object
467467
* @throws IOException an exception occurs if there were any problems interacting with the connection object
468468
*/
469469
private <Body> void handleErrorResponse(final IHttpRequest request,

0 commit comments

Comments
 (0)