Browse Source

Polishing

pull/25798/head
Juergen Hoeller 4 years ago
parent
commit
d62202f464
  1. 2
      spring-beans/src/main/java/org/springframework/beans/factory/support/ReplaceOverride.java
  2. 2
      spring-web/src/main/java/org/springframework/web/server/adapter/WebHttpHandlerBuilder.java

2
spring-beans/src/main/java/org/springframework/beans/factory/support/ReplaceOverride.java

@ -49,7 +49,7 @@ public class ReplaceOverride extends MethodOverride { @@ -49,7 +49,7 @@ public class ReplaceOverride extends MethodOverride {
*/
public ReplaceOverride(String methodName, String methodReplacerBeanName) {
super(methodName);
Assert.notNull(methodName, "Method replacer bean name must not be null");
Assert.notNull(methodReplacerBeanName, "Method replacer bean name must not be null");
this.methodReplacerBeanName = methodReplacerBeanName;
}

2
spring-web/src/main/java/org/springframework/web/server/adapter/WebHttpHandlerBuilder.java

@ -226,7 +226,6 @@ public final class WebHttpHandlerBuilder { @@ -226,7 +226,6 @@ public final class WebHttpHandlerBuilder {
}
private void updateFilters() {
if (this.filters.isEmpty()) {
return;
}
@ -349,7 +348,6 @@ public final class WebHttpHandlerBuilder { @@ -349,7 +348,6 @@ public final class WebHttpHandlerBuilder {
* Build the {@link HttpHandler}.
*/
public HttpHandler build() {
WebHandler decorated = new FilteringWebHandler(this.webHandler, this.filters);
decorated = new ExceptionHandlingWebHandler(decorated, this.exceptionHandlers);

Loading…
Cancel
Save