Reformat MvcRequestMatcher

- Moved related private methods together

Issue gh-9284
This commit is contained in:
Josh Cummings 2021-01-11 08:28:59 -07:00
parent 8449df9fd2
commit 160a4a3676
No known key found for this signature in database
GPG Key ID: 49EF60DD7FF83443
1 changed files with 9 additions and 9 deletions

View File

@ -76,15 +76,6 @@ public class MvcRequestMatcher implements RequestMatcher, RequestVariablesExtrac
return matchResult != null;
}
private MatchableHandlerMapping getMapping(HttpServletRequest request) {
try {
return this.introspector.getMatchableHandlerMapping(request);
}
catch (Throwable ex) {
return null;
}
}
@Override
@Deprecated
public Map<String, String> extractUriTemplateVariables(HttpServletRequest request) {
@ -109,6 +100,15 @@ public class MvcRequestMatcher implements RequestMatcher, RequestVariablesExtrac
|| this.servletPath != null && !this.servletPath.equals(request.getServletPath());
}
private MatchableHandlerMapping getMapping(HttpServletRequest request) {
try {
return this.introspector.getMatchableHandlerMapping(request);
}
catch (Throwable ex) {
return null;
}
}
/**
* @param method the method to set
*/