mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-26 03:19:02 +00:00
Merge pull request #11690 from izeye:this
* pr/11690: Use this() in EndpointRequests
This commit is contained in:
+3
-9
@@ -101,21 +101,15 @@ public final class EndpointRequest {
|
||||
private ServerWebExchangeMatcher delegate;
|
||||
|
||||
private EndpointServerWebExchangeMatcher() {
|
||||
super(EndpointPathProvider.class);
|
||||
this.includes = Collections.emptyList();
|
||||
this.excludes = Collections.emptyList();
|
||||
this(Collections.emptyList(), Collections.emptyList());
|
||||
}
|
||||
|
||||
private EndpointServerWebExchangeMatcher(Class<?>[] endpoints) {
|
||||
super(EndpointPathProvider.class);
|
||||
this.includes = Arrays.asList((Object[]) endpoints);
|
||||
this.excludes = Collections.emptyList();
|
||||
this(Arrays.asList((Object[]) endpoints), Collections.emptyList());
|
||||
}
|
||||
|
||||
private EndpointServerWebExchangeMatcher(String[] endpoints) {
|
||||
super(EndpointPathProvider.class);
|
||||
this.includes = Arrays.asList((Object[]) endpoints);
|
||||
this.excludes = Collections.emptyList();
|
||||
this(Arrays.asList((Object[]) endpoints), Collections.emptyList());
|
||||
}
|
||||
|
||||
private EndpointServerWebExchangeMatcher(List<Object> includes,
|
||||
|
||||
+3
-9
@@ -99,21 +99,15 @@ public final class EndpointRequest {
|
||||
private RequestMatcher delegate;
|
||||
|
||||
private EndpointRequestMatcher() {
|
||||
super(EndpointPathProvider.class);
|
||||
this.includes = Collections.emptyList();
|
||||
this.excludes = Collections.emptyList();
|
||||
this(Collections.emptyList(), Collections.emptyList());
|
||||
}
|
||||
|
||||
private EndpointRequestMatcher(Class<?>[] endpoints) {
|
||||
super(EndpointPathProvider.class);
|
||||
this.includes = Arrays.asList((Object[]) endpoints);
|
||||
this.excludes = Collections.emptyList();
|
||||
this(Arrays.asList((Object[]) endpoints), Collections.emptyList());
|
||||
}
|
||||
|
||||
private EndpointRequestMatcher(String[] endpoints) {
|
||||
super(EndpointPathProvider.class);
|
||||
this.includes = Arrays.asList((Object[]) endpoints);
|
||||
this.excludes = Collections.emptyList();
|
||||
this(Arrays.asList((Object[]) endpoints), Collections.emptyList());
|
||||
}
|
||||
|
||||
private EndpointRequestMatcher(List<Object> includes, List<Object> excludes) {
|
||||
|
||||
Reference in New Issue
Block a user