1
1
/*
2
- * Copyright 2002-2021 the original author or authors.
2
+ * Copyright 2002-2023 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -137,18 +137,21 @@ public MappedInterceptor(@Nullable String[] includePatterns, @Nullable String[]
137
137
138
138
139
139
/**
140
- * Return the patterns this interceptor is mapped to.
140
+ * Get the include path patterns this interceptor is mapped to.
141
+ * @see #getIncludePathPatterns()
142
+ * @see #getExcludePathPatterns()
143
+ * @deprecated since 6.1 in favor of {@link #getIncludePathPatterns()}
141
144
*/
142
145
@ Nullable
143
- @ Deprecated
146
+ @ Deprecated ( since = "6.1" , forRemoval = true )
144
147
public String [] getPathPatterns () {
145
- return (!ObjectUtils .isEmpty (this .includePatterns ) ?
146
- Arrays .stream (this .includePatterns ).map (PatternAdapter ::getPatternString ).toArray (String []::new ) :
147
- null );
148
+ return getIncludePathPatterns ();
148
149
}
149
150
150
151
/**
151
- * Return the include path patterns this interceptor is mapped to.
152
+ * Get the include path patterns this interceptor is mapped to.
153
+ * @since 6.1
154
+ * @see #getExcludePathPatterns()
152
155
*/
153
156
@ Nullable
154
157
public String [] getIncludePathPatterns () {
@@ -158,7 +161,9 @@ public String[] getIncludePathPatterns() {
158
161
}
159
162
160
163
/**
161
- * Return the exclude path patterns this interceptor is mapped to.
164
+ * Get the exclude path patterns this interceptor is mapped to.
165
+ * @since 6.1
166
+ * @see #getIncludePathPatterns()
162
167
*/
163
168
@ Nullable
164
169
public String [] getExcludePathPatterns () {
0 commit comments