Overriding getMappingPathPatterns is not required

After a hierarchy change in Spring Framework in gh-22543,
`AbstractWebFluxEndpointHandlerMapping` doesn't need to override the
`getMappingPathPatterns` method anymore.
This commit is contained in:
Brian Clozel
2019-04-10 08:39:16 +02:00
parent 9393c645f8
commit 3e56707132

View File

@@ -22,7 +22,6 @@ import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import java.util.function.Supplier;
import org.reactivestreams.Publisher;
@@ -66,7 +65,6 @@ import org.springframework.web.reactive.result.method.RequestMappingInfo;
import org.springframework.web.reactive.result.method.RequestMappingInfoHandlerMapping;
import org.springframework.web.server.ResponseStatusException;
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.util.pattern.PathPattern;
import org.springframework.web.util.pattern.PathPatternParser;
/**
@@ -214,11 +212,6 @@ public abstract class AbstractWebFluxEndpointHandlerMapping
return null;
}
@Override
protected Set<PathPattern> getMappingPathPatterns(RequestMappingInfo mapping) {
return mapping.getPatternsCondition().getPatterns();
}
/**
* Return the Handler providing actuator links at the root endpoint.
* @return the links handler