Skip to content

Commit 7839b0e

Browse files
authored
Merge pull request #129 from microsoftgraph/Type-hiding-warning-fix
Type hiding warning fix
2 parents ee830c6 + 5140c27 commit 7839b0e

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, some times Action use different body than collection item
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)