mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-09 19:09:03 +00:00
Merge branch '2.0.x'
This commit is contained in:
+2
-2
@@ -125,7 +125,7 @@ public final class EndpointRequest {
|
||||
|
||||
private final boolean includeLinks;
|
||||
|
||||
private ServerWebExchangeMatcher delegate;
|
||||
private volatile ServerWebExchangeMatcher delegate;
|
||||
|
||||
private EndpointServerWebExchangeMatcher(boolean includeLinks) {
|
||||
this(Collections.emptyList(), Collections.emptyList(), includeLinks);
|
||||
@@ -246,7 +246,7 @@ public final class EndpointRequest {
|
||||
public static final class LinksServerWebExchangeMatcher
|
||||
extends ApplicationContextServerWebExchangeMatcher<WebEndpointProperties> {
|
||||
|
||||
private ServerWebExchangeMatcher delegate;
|
||||
private volatile ServerWebExchangeMatcher delegate;
|
||||
|
||||
private LinksServerWebExchangeMatcher() {
|
||||
super(WebEndpointProperties.class);
|
||||
|
||||
+3
-2
@@ -70,8 +70,9 @@ public abstract class ApplicationContextServerWebExchangeMatcher<C>
|
||||
if (this.context == null) {
|
||||
synchronized (this.contextLock) {
|
||||
if (this.context == null) {
|
||||
this.context = createContext(exchange);
|
||||
initialized(this.context);
|
||||
Supplier<C> createdContext = createContext(exchange);
|
||||
initialized(createdContext);
|
||||
this.context = createdContext;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user