1
0
mirror of synced 2026-08-06 10:18:52 +00:00

Minor cleanup on Ant / Regex Request Matchers

- Removed duplicative code for transforming String into HttpMethod
 - Removed an unnecessary array initialization
This commit is contained in:
Nick McKinney
2020-12-11 17:40:55 -05:00
committed by Eleftheria Stein-Kousathana
parent 6be25df1db
commit 5306d4c4d5
3 changed files with 4 additions and 33 deletions
@@ -87,7 +87,7 @@ public abstract class AbstractRequestMatcherRegistry<C> {
* @return the object that is chained after creating the {@link RequestMatcher}
*/
public C antMatchers(HttpMethod method) {
return antMatchers(method, new String[] { "/**" });
return antMatchers(method, "/**");
}
/**