Skip to content

Commit 1618963

Browse files
committedMar 26, 2025··
Deprecate AntPathRequestMatcher
Closes gh-16632
1 parent 59f08e8 commit 1618963

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎web/src/main/java/org/springframework/security/web/util/matcher/AntPathRequestMatcher.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@
2323
import jakarta.servlet.http.HttpServletRequest;
2424

2525
import org.springframework.http.HttpMethod;
26+
import org.springframework.security.web.servlet.util.matcher.PathPatternRequestMatcher;
2627
import org.springframework.util.AntPathMatcher;
2728
import org.springframework.util.Assert;
2829
import org.springframework.util.StringUtils;
@@ -53,7 +54,9 @@
5354
* @author Manuel Jordan
5455
* @since 3.1
5556
* @see org.springframework.util.AntPathMatcher
57+
* @deprecated please use {@link PathPatternRequestMatcher} instead
5658
*/
59+
@Deprecated(forRemoval = true)
5760
public final class AntPathRequestMatcher implements RequestMatcher, RequestVariablesExtractor {
5861

5962
private static final String MATCH_ALL = "/**";

0 commit comments

Comments
 (0)
Please sign in to comment.