Sfoglia il codice sorgente

Reformat MvcRequestMatcher

- Moved related private methods together

Issue gh-9284
Josh Cummings 4 anni fa
parent
commit
160a4a3676

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

@@ -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
 	 */