Polish InterceptorRegistration

Closes gh-1647
This commit is contained in:
Johnny Lim
2018-01-20 10:12:30 +09:00
committed by Stephane Nicoll
parent 283811b16b
commit 36d42bcda4

View File

@@ -60,8 +60,7 @@ public class InterceptorRegistration {
* Add URL patterns to which the registered interceptor should apply to.
*/
public InterceptorRegistration addPathPatterns(String... patterns) {
this.includePatterns.addAll(Arrays.asList(patterns));
return this;
return addPathPatterns(Arrays.asList(patterns));
}
/**
@@ -77,8 +76,7 @@ public class InterceptorRegistration {
* Add URL patterns to which the registered interceptor should not apply to.
*/
public InterceptorRegistration excludePathPatterns(String... patterns) {
this.excludePatterns.addAll(Arrays.asList(patterns));
return this;
return excludePathPatterns(Arrays.asList(patterns));
}
/**