File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
web/src/main/java/org/springframework/security/web/util/matcher Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,11 @@ public static RegexRequestMatcher regexMatcher(HttpMethod method) {
7676
7777 /**
7878 * Creates a case-sensitive {@code Pattern} instance to match against the request.
79- * @param method the HTTP method to match. May not be null to match all methods.
79+ * @param method the HTTP method to match. May be null to match all methods.
8080 * @param pattern the regular expression to compile into a pattern.
8181 * @since 5.8
8282 */
8383 public static RegexRequestMatcher regexMatcher (HttpMethod method , String pattern ) {
84- Assert .notNull (method , "method cannot be null" );
8584 Assert .hasText (pattern , "pattern cannot be empty" );
8685 return new RegexRequestMatcher (pattern , method .name ());
8786 }
You can’t perform that action at this time.
0 commit comments