File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/main/java/com/microsoft/graph/http Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments