Skip to content

Commit 8bf85d2

Browse files
committed
Polishing
1 parent 508b31d commit 8bf85d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-web/src/main/java/org/springframework/http/HttpHeaders.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,9 +2336,9 @@ public List<String> getValue() {
23362336

23372337
@Override
23382338
public List<String> setValue(List<String> value) {
2339-
List<String> previousValues = Objects.requireNonNull(CaseInsensitiveEntrySet.this.headers.get(this.key));
2339+
List<String> previous = Objects.requireNonNull(CaseInsensitiveEntrySet.this.headers.get(this.key));
23402340
CaseInsensitiveEntrySet.this.headers.put(this.key, value);
2341-
return previousValues;
2341+
return previous;
23422342
}
23432343

23442344
@Override

spring-webflux/src/main/java/org/springframework/web/reactive/result/method/InvocableHandlerMethod.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public ParameterNameDiscoverer getParameterNameDiscoverer() {
148148
/**
149149
* Configure a reactive adapter registry. This is needed for cases where the response is
150150
* fully handled within the controller in combination with an async void return value.
151-
* <p>By default this is a {@link ReactiveAdapterRegistry} with default settings.
151+
* <p>By default, this is a {@link ReactiveAdapterRegistry} with default settings.
152152
*/
153153
public void setReactiveAdapterRegistry(ReactiveAdapterRegistry registry) {
154154
this.reactiveAdapterRegistry = registry;

0 commit comments

Comments
 (0)