Skip to content

Commit 088bfe5

Browse files
author
Nakul Sabharwal
committed
Merge branch 'Type-hiding-warning-fix' of https://github.com/microsoftgraph/msgraph-sdk-java into Type-hiding-warning-fix
2 parents bffb322 + b291b88 commit 088bfe5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/microsoft/graph/http/BaseCollectionRequest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,11 @@ protected T1 send() throws ClientException {
9191
* Posts this request
9292
*
9393
* @param serializedObject the object to serialize as the body
94-
* @param <T1> the type of the callback result
95-
* @param <T2> the type of the serialized body
94+
* @param <BodyType> the type of the serialized body
9695
* @return the response object
9796
* @throws ClientException an exception occurs if there was an error while the request was sent
9897
*/
99-
@SuppressWarnings("unchecked")
100-
protected <T1, T2> T1 post(final T2 serializedObject) throws ClientException {
98+
protected <BodyType> T1 post(final BodyType serializedObject) throws ClientException {
10199
baseRequest.setHttpMethod(HttpMethod.POST);
102100
return (T1) baseRequest.getClient().getHttpProvider().send(this, responseClass, serializedObject);
103101
}

0 commit comments

Comments
 (0)