Merge pull request #11690 from izeye:this
* pr/11690: Use this() in EndpointRequests
This commit is contained in:
commit
322a629b53
|
@ -101,21 +101,15 @@ public final class EndpointRequest {
|
||||||
private ServerWebExchangeMatcher delegate;
|
private ServerWebExchangeMatcher delegate;
|
||||||
|
|
||||||
private EndpointServerWebExchangeMatcher() {
|
private EndpointServerWebExchangeMatcher() {
|
||||||
super(EndpointPathProvider.class);
|
this(Collections.emptyList(), Collections.emptyList());
|
||||||
this.includes = Collections.emptyList();
|
|
||||||
this.excludes = Collections.emptyList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private EndpointServerWebExchangeMatcher(Class<?>[] endpoints) {
|
private EndpointServerWebExchangeMatcher(Class<?>[] endpoints) {
|
||||||
super(EndpointPathProvider.class);
|
this(Arrays.asList((Object[]) endpoints), Collections.emptyList());
|
||||||
this.includes = Arrays.asList((Object[]) endpoints);
|
|
||||||
this.excludes = Collections.emptyList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private EndpointServerWebExchangeMatcher(String[] endpoints) {
|
private EndpointServerWebExchangeMatcher(String[] endpoints) {
|
||||||
super(EndpointPathProvider.class);
|
this(Arrays.asList((Object[]) endpoints), Collections.emptyList());
|
||||||
this.includes = Arrays.asList((Object[]) endpoints);
|
|
||||||
this.excludes = Collections.emptyList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private EndpointServerWebExchangeMatcher(List<Object> includes,
|
private EndpointServerWebExchangeMatcher(List<Object> includes,
|
||||||
|
|
|
@ -99,21 +99,15 @@ public final class EndpointRequest {
|
||||||
private RequestMatcher delegate;
|
private RequestMatcher delegate;
|
||||||
|
|
||||||
private EndpointRequestMatcher() {
|
private EndpointRequestMatcher() {
|
||||||
super(EndpointPathProvider.class);
|
this(Collections.emptyList(), Collections.emptyList());
|
||||||
this.includes = Collections.emptyList();
|
|
||||||
this.excludes = Collections.emptyList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private EndpointRequestMatcher(Class<?>[] endpoints) {
|
private EndpointRequestMatcher(Class<?>[] endpoints) {
|
||||||
super(EndpointPathProvider.class);
|
this(Arrays.asList((Object[]) endpoints), Collections.emptyList());
|
||||||
this.includes = Arrays.asList((Object[]) endpoints);
|
|
||||||
this.excludes = Collections.emptyList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private EndpointRequestMatcher(String[] endpoints) {
|
private EndpointRequestMatcher(String[] endpoints) {
|
||||||
super(EndpointPathProvider.class);
|
this(Arrays.asList((Object[]) endpoints), Collections.emptyList());
|
||||||
this.includes = Arrays.asList((Object[]) endpoints);
|
|
||||||
this.excludes = Collections.emptyList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private EndpointRequestMatcher(List<Object> includes, List<Object> excludes) {
|
private EndpointRequestMatcher(List<Object> includes, List<Object> excludes) {
|
||||||
|
|
Loading…
Reference in New Issue