Fix TestRestTemplate#patchFor methods visibility

Closes gh-7742
This commit is contained in:
Stephane Nicoll
2016-12-25 10:00:20 +01:00
parent c3edf9e341
commit 062104f1d6
2 changed files with 17 additions and 6 deletions

View File

@@ -575,10 +575,10 @@ public class TestRestTemplate {
* @param <T> the type of the return value
* @return the converted object
* @throws RestClientException on client-side HTTP error
* @since 1.4.4
* @see HttpEntity
* @since 1.4.3
*/
<T> T patchForObject(String url, Object request, Class<T> responseType,
public <T> T patchForObject(String url, Object request, Class<T> responseType,
Object... uriVariables) throws RestClientException {
return this.restTemplate.patchForObject(url, request, responseType, uriVariables);
}
@@ -598,10 +598,10 @@ public class TestRestTemplate {
* @param <T> the type of the return value
* @return the converted object
* @throws RestClientException on client-side HTTP error
* @since 1.4.4
* @see HttpEntity
* @since 1.4.3
*/
<T> T patchForObject(String url, Object request, Class<T> responseType,
public <T> T patchForObject(String url, Object request, Class<T> responseType,
Map<String, ?> uriVariables) throws RestClientException {
return this.restTemplate.patchForObject(url, request, responseType, uriVariables);
}
@@ -618,10 +618,10 @@ public class TestRestTemplate {
* @param <T> the type of the return value
* @return the converted object
* @throws RestClientException on client-side HTTP error
* @since 1.4.4
* @see HttpEntity
* @since 1.4.3
*/
<T> T patchForObject(URI url, Object request, Class<T> responseType)
public <T> T patchForObject(URI url, Object request, Class<T> responseType)
throws RestClientException {
return this.restTemplate.patchForObject(url, request, responseType);