Skip to content

Commit a0cea9a

Browse files
committed
Polishing
1 parent aa28b6c commit a0cea9a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,8 +1006,8 @@ project("spring-test") {
10061006
optional(project(":spring-tx"))
10071007
optional(project(":spring-orm"))
10081008
optional(project(":spring-web"))
1009-
optional(project(":spring-webmvc"))
10101009
optional(project(":spring-webflux"))
1010+
optional(project(":spring-webmvc"))
10111011
optional(project(":spring-websocket"))
10121012
optional("junit:junit:${junitVersion}")
10131013
optional("org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}")

spring-web/src/main/java/org/springframework/web/server/DefaultServerWebExchangeBuilder.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package org.springframework.web.server;
1718

1819
import java.security.Principal;
@@ -25,7 +26,7 @@
2526
import org.springframework.util.Assert;
2627

2728
/**
28-
* Package private implementation of {@link ServerWebExchange.Builder}.
29+
* Package-private implementation of {@link ServerWebExchange.Builder}.
2930
*
3031
* @author Rossen Stoyanchev
3132
* @since 5.0
@@ -42,7 +43,7 @@ class DefaultServerWebExchangeBuilder implements ServerWebExchange.Builder {
4243

4344

4445
DefaultServerWebExchangeBuilder(ServerWebExchange delegate) {
45-
Assert.notNull(delegate, "'delegate' is required.");
46+
Assert.notNull(delegate, "Delegate is required");
4647
this.delegate = delegate;
4748
}
4849

@@ -90,7 +91,6 @@ private static class MutativeDecorator extends ServerWebExchangeDecorator {
9091

9192
private final Mono<Principal> principalMono;
9293

93-
9494
public MutativeDecorator(ServerWebExchange delegate, ServerHttpRequest request,
9595
ServerHttpResponse response, Mono<Principal> principalMono) {
9696

@@ -100,7 +100,6 @@ public MutativeDecorator(ServerWebExchange delegate, ServerHttpRequest request,
100100
this.principalMono = principalMono;
101101
}
102102

103-
104103
@Override
105104
public ServerHttpRequest getRequest() {
106105
return (this.request != null ? this.request : getDelegate().getRequest());

0 commit comments

Comments
 (0)