Skip to content

Commit 441ed80

Browse files
committed
Javadoc
1 parent decb55c commit 441ed80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-web/src/main/java/org/springframework/web/client/RestOperations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ <T> ResponseEntity<T> exchange(URI url, HttpMethod method, HttpEntity<?> request
468468
* with the static builder methods on {@code RequestEntity}, for instance:
469469
* <pre class="code">
470470
* MyRequest body = ...
471-
* RequestEntity request = RequestEntity.post(new URI(&quot;http://example.com/foo&quot;).accept(MediaType.APPLICATION_JSON).body(body);
471+
* RequestEntity request = RequestEntity.post(new URI(&quot;http://example.com/foo&quot;)).accept(MediaType.APPLICATION_JSON).body(body);
472472
* ResponseEntity&lt;MyResponse&gt; response = template.exchange(request, MyResponse.class);
473473
* </pre>
474474
* @param requestEntity the entity to write to the request
@@ -484,7 +484,7 @@ <T> ResponseEntity<T> exchange(URI url, HttpMethod method, HttpEntity<?> request
484484
* {@link ParameterizedTypeReference} is used to pass generic type information:
485485
* <pre class="code">
486486
* MyRequest body = ...
487-
* RequestEntity request = RequestEntity.post(new URI(&quot;http://example.com/foo&quot;).accept(MediaType.APPLICATION_JSON).body(body);
487+
* RequestEntity request = RequestEntity.post(new URI(&quot;http://example.com/foo&quot;)).accept(MediaType.APPLICATION_JSON).body(body);
488488
* ParameterizedTypeReference&lt;List&lt;MyResponse&gt;&gt; myBean = new ParameterizedTypeReference&lt;List&lt;MyResponse&gt;&gt;() {};
489489
* ResponseEntity&lt;List&lt;MyResponse&gt;&gt; response = template.exchange(request, myBean);
490490
* </pre>

0 commit comments

Comments
 (0)