Skip to content

Commit 160a4a3

Browse files
committed
Reformat MvcRequestMatcher
- Moved related private methods together Issue gh-9284
1 parent 8449df9 commit 160a4a3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

web/src/main/java/org/springframework/security/web/servlet/util/matcher/MvcRequestMatcher.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,6 @@ public boolean matches(HttpServletRequest request) {
7676
return matchResult != null;
7777
}
7878

79-
private MatchableHandlerMapping getMapping(HttpServletRequest request) {
80-
try {
81-
return this.introspector.getMatchableHandlerMapping(request);
82-
}
83-
catch (Throwable ex) {
84-
return null;
85-
}
86-
}
87-
8879
@Override
8980
@Deprecated
9081
public Map<String, String> extractUriTemplateVariables(HttpServletRequest request) {
@@ -109,6 +100,15 @@ private boolean notMatchMethodOrServletPath(HttpServletRequest request) {
109100
|| this.servletPath != null && !this.servletPath.equals(request.getServletPath());
110101
}
111102

103+
private MatchableHandlerMapping getMapping(HttpServletRequest request) {
104+
try {
105+
return this.introspector.getMatchableHandlerMapping(request);
106+
}
107+
catch (Throwable ex) {
108+
return null;
109+
}
110+
}
111+
112112
/**
113113
* @param method the method to set
114114
*/

0 commit comments

Comments
 (0)