mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-26 08:59:09 +00:00
Polishing
This commit is contained in:
@@ -2336,9 +2336,9 @@ public class HttpHeaders implements Serializable {
|
||||
|
||||
@Override
|
||||
public List<String> setValue(List<String> value) {
|
||||
List<String> previousValues = Objects.requireNonNull(CaseInsensitiveEntrySet.this.headers.get(this.key));
|
||||
List<String> previous = Objects.requireNonNull(CaseInsensitiveEntrySet.this.headers.get(this.key));
|
||||
CaseInsensitiveEntrySet.this.headers.put(this.key, value);
|
||||
return previousValues;
|
||||
return previous;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -148,7 +148,7 @@ public class InvocableHandlerMethod extends HandlerMethod {
|
||||
/**
|
||||
* Configure a reactive adapter registry. This is needed for cases where the response is
|
||||
* fully handled within the controller in combination with an async void return value.
|
||||
* <p>By default this is a {@link ReactiveAdapterRegistry} with default settings.
|
||||
* <p>By default, this is a {@link ReactiveAdapterRegistry} with default settings.
|
||||
*/
|
||||
public void setReactiveAdapterRegistry(ReactiveAdapterRegistry registry) {
|
||||
this.reactiveAdapterRegistry = registry;
|
||||
|
||||
Reference in New Issue
Block a user