Skip to content

Commit

Permalink
Polish "Clarify that RestTemplateBuilder overwrites default converters"
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Oct 1, 2018
1 parent 3dbeff5 commit 5c1d22e
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ public RestTemplateBuilder rootUri(String rootUri) {
/**
* Set the {@link HttpMessageConverter HttpMessageConverters} that should be used with
* the {@link RestTemplate}. Setting this value will replace any previously configured
* converters.
* converters and any converters configured on the builder will replace RestTemplate's
* default converters.
* @param messageConverters the converters to set
* @return a new builder instance
* @see #additionalMessageConverters(HttpMessageConverter...)
Expand All @@ -183,7 +184,8 @@ public RestTemplateBuilder messageConverters(
/**
* Set the {@link HttpMessageConverter HttpMessageConverters} that should be used with
* the {@link RestTemplate}. Setting this value will replace any previously configured
* converters.
* converters and any converters configured on the builder will replace RestTemplate's
* default converters.
* @param messageConverters the converters to set
* @return a new builder instance
* @see #additionalMessageConverters(HttpMessageConverter...)
Expand All @@ -201,8 +203,8 @@ public RestTemplateBuilder messageConverters(

/**
* Add additional {@link HttpMessageConverter HttpMessageConverters} that should be
* used with the {@link RestTemplate}. The final list of converters replace any
* RestTemplate came configured with.
* used with the {@link RestTemplate}. Any converters configured on the builder will
* replace RestTemplate's default converters.
* @param messageConverters the converters to add
* @return a new builder instance
* @see #messageConverters(HttpMessageConverter...)
Expand All @@ -215,8 +217,8 @@ public RestTemplateBuilder additionalMessageConverters(

/**
* Add additional {@link HttpMessageConverter HttpMessageConverters} that should be
* used with the {@link RestTemplate}. The final list of converters replace any
* RestTemplate came configured with.
* used with the {@link RestTemplate}. Any converters configured on the builder will
* replace RestTemplate's default converters.
* @param messageConverters the converters to add
* @return a new builder instance
* @see #messageConverters(HttpMessageConverter...)
Expand Down

0 comments on commit 5c1d22e

Please sign in to comment.