@@ -115,7 +115,8 @@ inline fun <reified T: Any> RestOperations.getForEntity(url: String, uriVariable
115
115
* @since 5.0.2
116
116
*/
117
117
@Throws(RestClientException ::class )
118
- inline fun <reified T : Any > RestOperations.patchForObject (url : String , request : Any , vararg uriVariables : Any ): T ? =
118
+ inline fun <reified T : Any > RestOperations.patchForObject (url : String , request : Any? = null,
119
+ vararg uriVariables : Any ): T ? =
119
120
patchForObject(url, request, T ::class .java, * uriVariables)
120
121
121
122
/* *
@@ -128,7 +129,8 @@ inline fun <reified T: Any> RestOperations.patchForObject(url: String, request:
128
129
* @since 5.0.2
129
130
*/
130
131
@Throws(RestClientException ::class )
131
- inline fun <reified T : Any > RestOperations.patchForObject (url : String , request : Any , uriVariables : Map <String , * >): T ? =
132
+ inline fun <reified T : Any > RestOperations.patchForObject (url : String , request : Any? = null,
133
+ uriVariables : Map <String , * >): T ? =
132
134
patchForObject(url, request, T ::class .java, uriVariables)
133
135
134
136
/* *
@@ -141,7 +143,7 @@ inline fun <reified T: Any> RestOperations.patchForObject(url: String, request:
141
143
* @since 5.0.2
142
144
*/
143
145
@Throws(RestClientException ::class )
144
- inline fun <reified T : Any > RestOperations.patchForObject (url : URI , request : Any ): T ? =
146
+ inline fun <reified T : Any > RestOperations.patchForObject (url : URI , request : Any? = null ): T ? =
145
147
patchForObject(url, request, T ::class .java)
146
148
147
149
/* *
@@ -155,7 +157,8 @@ inline fun <reified T: Any> RestOperations.patchForObject(url: URI, request: Any
155
157
* @since 5.0
156
158
*/
157
159
@Throws(RestClientException ::class )
158
- inline fun <reified T : Any > RestOperations.postForObject (url : String , request : Any , vararg uriVariables : Any ): T ? =
160
+ inline fun <reified T : Any > RestOperations.postForObject (url : String , request : Any? = null,
161
+ vararg uriVariables : Any ): T ? =
159
162
postForObject(url, request, T ::class .java, * uriVariables)
160
163
161
164
/* *
@@ -169,7 +172,8 @@ inline fun <reified T: Any> RestOperations.postForObject(url: String, request: A
169
172
* @since 5.0
170
173
*/
171
174
@Throws(RestClientException ::class )
172
- inline fun <reified T : Any > RestOperations.postForObject (url : String , request : Any , uriVariables : Map <String , * >): T ? =
175
+ inline fun <reified T : Any > RestOperations.postForObject (url : String , request : Any? = null,
176
+ uriVariables : Map <String , * >): T ? =
173
177
postForObject(url, request, T ::class .java, uriVariables)
174
178
175
179
/* *
@@ -183,7 +187,7 @@ inline fun <reified T: Any> RestOperations.postForObject(url: String, request: A
183
187
* @since 5.0
184
188
*/
185
189
@Throws(RestClientException ::class )
186
- inline fun <reified T : Any > RestOperations.postForObject (url : URI , request : Any ): T ? =
190
+ inline fun <reified T : Any > RestOperations.postForObject (url : URI , request : Any? = null ): T ? =
187
191
postForObject(url, request, T ::class .java)
188
192
189
193
/* *
@@ -197,7 +201,7 @@ inline fun <reified T: Any> RestOperations.postForObject(url: URI, request: Any)
197
201
* @since 5.0
198
202
*/
199
203
@Throws(RestClientException ::class )
200
- inline fun <reified T : Any > RestOperations.postForEntity (url : String , request : Any ,
204
+ inline fun <reified T : Any > RestOperations.postForEntity (url : String , request : Any? = null ,
201
205
vararg uriVariables : Any ): ResponseEntity <T > =
202
206
postForEntity(url, request, T ::class .java, * uriVariables)
203
207
@@ -212,7 +216,7 @@ inline fun <reified T: Any> RestOperations.postForEntity(url: String, request: A
212
216
* @since 5.0
213
217
*/
214
218
@Throws(RestClientException ::class )
215
- inline fun <reified T : Any > RestOperations.postForEntity (url : String , request : Any ,
219
+ inline fun <reified T : Any > RestOperations.postForEntity (url : String , request : Any? = null ,
216
220
uriVariables : Map <String , * >): ResponseEntity <T > =
217
221
postForEntity(url, request, T ::class .java, uriVariables)
218
222
@@ -227,7 +231,7 @@ inline fun <reified T: Any> RestOperations.postForEntity(url: String, request: A
227
231
* @since 5.0
228
232
*/
229
233
@Throws(RestClientException ::class )
230
- inline fun <reified T : Any > RestOperations.postForEntity (url : URI , request : Any ): ResponseEntity <T > =
234
+ inline fun <reified T : Any > RestOperations.postForEntity (url : URI , request : Any? = null ): ResponseEntity <T > =
231
235
postForEntity(url, request, T ::class .java)
232
236
233
237
/* *
@@ -241,7 +245,7 @@ inline fun <reified T: Any> RestOperations.postForEntity(url: URI, request: Any)
241
245
*/
242
246
@Throws(RestClientException ::class )
243
247
inline fun <reified T : Any > RestOperations.exchange (url : String , method : HttpMethod ,
244
- requestEntity : HttpEntity <* >, vararg uriVariables : Any ): ResponseEntity <T > =
248
+ requestEntity : HttpEntity <* >? = null , vararg uriVariables : Any ): ResponseEntity <T > =
245
249
exchange(url, method, requestEntity, object : ParameterizedTypeReference <T >() {}, * uriVariables)
246
250
247
251
/* *
@@ -255,7 +259,7 @@ inline fun <reified T: Any> RestOperations.exchange(url: String, method: HttpMet
255
259
*/
256
260
@Throws(RestClientException ::class )
257
261
inline fun <reified T : Any > RestOperations.exchange (url : String , method : HttpMethod ,
258
- requestEntity : HttpEntity <* >, uriVariables : Map <String , * >): ResponseEntity <T > =
262
+ requestEntity : HttpEntity <* >? = null , uriVariables : Map <String , * >): ResponseEntity <T > =
259
263
exchange(url, method, requestEntity, object : ParameterizedTypeReference <T >() {}, uriVariables)
260
264
261
265
/* *
@@ -269,7 +273,7 @@ inline fun <reified T: Any> RestOperations.exchange(url: String, method: HttpMet
269
273
*/
270
274
@Throws(RestClientException ::class )
271
275
inline fun <reified T : Any > RestOperations.exchange (url : URI , method : HttpMethod ,
272
- requestEntity : HttpEntity <* >): ResponseEntity <T > =
276
+ requestEntity : HttpEntity <* >? = null ): ResponseEntity <T > =
273
277
exchange(url, method, requestEntity, object : ParameterizedTypeReference <T >() {})
274
278
275
279
/* *
0 commit comments