Skip to content

Commit 232225b

Browse files
committed
Polishing
1 parent 5caf714 commit 232225b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

spring-context/src/main/java/org/springframework/cache/interceptor/CacheAspectSupport.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
104104
* {@link Mono}/{@link Flux} will be specifically processed for asynchronous
105105
* caching of their produced values rather than trying to cache the returned
106106
* {@code Publisher} instances themselves.
107-
* <p>Switch this flag to "true" in order to ignore Reactive Streams Publishers
108-
* and process them as regular return values through synchronous caching,
109-
* restoring 6.0 behavior. Note that this is not recommended and only works in
110-
* very limited scenarios, e.g. with manual `Mono.cache()`/`Flux.cache()` calls.
107+
* <p>Switch this flag to "true" in order to ignore Reactive Streams Publishers and
108+
* process them as regular return values through synchronous caching, restoring 6.0
109+
* behavior. Note that this is not recommended and only works in very limited
110+
* scenarios, e.g. with manual {@code Mono.cache()}/{@code Flux.cache()} calls.
111111
* @since 6.1.3
112112
* @see org.reactivestreams.Publisher
113113
*/

spring-web/src/test/java/org/springframework/http/client/SimpleClientHttpRequestFactoryTests.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,15 @@ public void interceptor() throws Exception {
105105
}
106106
}
107107

108-
@Test // SPR-13225
108+
@Test // SPR-13225
109109
public void headerWithNullValue() {
110110
HttpURLConnection urlConnection = mock();
111111
given(urlConnection.getRequestMethod()).willReturn("GET");
112+
112113
HttpHeaders headers = new HttpHeaders();
113114
headers.set("foo", null);
114115
SimpleClientHttpRequest.addHeaders(urlConnection, headers);
116+
115117
verify(urlConnection, times(1)).addRequestProperty("foo", "");
116118
}
117119

0 commit comments

Comments
 (0)