Nullability refinements and related polishing
This commit is contained in:
@@ -411,10 +411,10 @@ public class RequestMappingHandlerMapping extends RequestMappingInfoHandlerMappi
|
||||
|
||||
@Override
|
||||
public RequestMatchResult match(HttpServletRequest request, String pattern) {
|
||||
Assert.isNull(getPatternParser(), "This HandlerMapping requires a PathPattern.");
|
||||
Assert.isNull(getPatternParser(), "This HandlerMapping requires a PathPattern");
|
||||
RequestMappingInfo info = RequestMappingInfo.paths(pattern).options(this.config).build();
|
||||
RequestMappingInfo match = info.getMatchingCondition(request);
|
||||
return (match != null ?
|
||||
return (match != null && match.getPatternsCondition() != null ?
|
||||
new RequestMatchResult(
|
||||
match.getPatternsCondition().getPatterns().iterator().next(),
|
||||
UrlPathHelper.getResolvedLookupPath(request),
|
||||
|
||||
Reference in New Issue
Block a user