Skip to content

Commit 734b4be

Browse files
Added changes
Signed-off-by: Soumik Sarker <[email protected]>
1 parent 6975c70 commit 734b4be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web/src/main/java/org/springframework/security/web/util/matcher/RegexRequestMatcher.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)