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:
committed by
Eleftheria Stein-Kousathana
parent
6be25df1db
commit
5306d4c4d5
+1
-1
@@ -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, "/**");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user