Skip to content

Commit

Permalink
Merge branch '2.0.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhave committed Sep 5, 2018
2 parents 9d1b3a2 + 9c82d5c commit f0d7533
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static final class EndpointServerWebExchangeMatcher

private final boolean includeLinks;

private ServerWebExchangeMatcher delegate;
private volatile ServerWebExchangeMatcher delegate;

private EndpointServerWebExchangeMatcher(boolean includeLinks) {
this(Collections.emptyList(), Collections.emptyList(), includeLinks);
Expand Down Expand Up @@ -246,7 +246,7 @@ protected Mono<MatchResult> matches(ServerWebExchange exchange,
public static final class LinksServerWebExchangeMatcher
extends ApplicationContextServerWebExchangeMatcher<WebEndpointProperties> {

private ServerWebExchangeMatcher delegate;
private volatile ServerWebExchangeMatcher delegate;

private LinksServerWebExchangeMatcher() {
super(WebEndpointProperties.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ protected Supplier<C> getContext(ServerWebExchange exchange) {
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;
}
}
}
Expand Down

0 comments on commit f0d7533

Please sign in to comment.