Skip to content

Commit 56795f9

Browse files
committed
Improve null-safety of module/spring-boot-resttestclient
See gh-47263
1 parent 6806ce5 commit 56795f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • module/spring-boot-resttestclient/src/main/java/org/springframework/boot/resttestclient

module/spring-boot-resttestclient/src/main/java/org/springframework/boot/resttestclient/TestRestTemplate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,8 +931,8 @@ public <T> ResponseEntity<T> exchange(RequestEntity<?> requestEntity, Parameteri
931931
* org.springframework.web.client.RequestCallback,
932932
* org.springframework.web.client.ResponseExtractor)
933933
*/
934-
public <T> @Nullable T execute(URI url, HttpMethod method, RequestCallback requestCallback,
935-
ResponseExtractor<T> responseExtractor) {
934+
public <T> @Nullable T execute(URI url, HttpMethod method, @Nullable RequestCallback requestCallback,
935+
@Nullable ResponseExtractor<T> responseExtractor) {
936936
return this.restTemplate.execute(applyRootUriIfNecessary(url), method, requestCallback, responseExtractor);
937937
}
938938

0 commit comments

Comments
 (0)