Skip to content

Commit 011ab08

Browse files
author
Nakul Sabharwal
committed
Type hiding warning fix using generic name as BodyType and change in comment.
1 parent b4e92cb commit 011ab08

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,11 @@ protected T1 send() throws ClientException {
9292
*
9393
* @param serializedObject the object to serialize as the body
9494
* @param <T1> the type of the callback result
95-
* @param <T2> the type of the serialized body
95+
* @param <BodyType> the type of the serialized body
9696
* @return the response object
9797
* @throws ClientException an exception occurs if there was an error while the request was sent
9898
*/
99-
@SuppressWarnings("unchecked")
100-
protected <T1, T2> T1 post(final T2 serializedObject) throws ClientException {
99+
protected <BodyType> T1 post(final BodyType serializedObject) throws ClientException {
101100
baseRequest.setHttpMethod(HttpMethod.POST);
102101
return (T1) baseRequest.getClient().getHttpProvider().send(this, responseClass, serializedObject);
103102
}

0 commit comments

Comments
 (0)