Rename fromObject to fromValue in BodyInserters

Closes gh-23587
This commit is contained in:
Sebastien Deleuze
2019-09-09 00:08:47 +02:00
parent 665e8aa51c
commit 5bb8c47b14
11 changed files with 43 additions and 24 deletions

View File

@@ -704,8 +704,8 @@ public interface WebTestClient {
RequestHeadersSpec<?> body(BodyInserter<?, ? super ClientHttpRequest> inserter);
/**
* Shortcut for {@link #body(BodyInserter)} with an
* {@linkplain BodyInserters#fromObject Object inserter}.
* Shortcut for {@link #body(BodyInserter)} with a
* {@linkplain BodyInserters#fromValue value inserter}.
* As of 5.2 this method delegates to {@link #bodyValue(Object)}.
* @deprecated as of Spring Framework 5.2 in favor of {@link #bodyValue(Object)}
*/