Skip to content

Commit 322a629

Browse files
committed
Merge pull request #11690 from izeye:this
* pr/11690: Use this() in EndpointRequests
2 parents 247b7f0 + 9d24186 commit 322a629

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/security/reactive/EndpointRequest.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,15 @@ public final static class EndpointServerWebExchangeMatcher
101101
private ServerWebExchangeMatcher delegate;
102102

103103
private EndpointServerWebExchangeMatcher() {
104-
super(EndpointPathProvider.class);
105-
this.includes = Collections.emptyList();
106-
this.excludes = Collections.emptyList();
104+
this(Collections.emptyList(), Collections.emptyList());
107105
}
108106

109107
private EndpointServerWebExchangeMatcher(Class<?>[] endpoints) {
110-
super(EndpointPathProvider.class);
111-
this.includes = Arrays.asList((Object[]) endpoints);
112-
this.excludes = Collections.emptyList();
108+
this(Arrays.asList((Object[]) endpoints), Collections.emptyList());
113109
}
114110

115111
private EndpointServerWebExchangeMatcher(String[] endpoints) {
116-
super(EndpointPathProvider.class);
117-
this.includes = Arrays.asList((Object[]) endpoints);
118-
this.excludes = Collections.emptyList();
112+
this(Arrays.asList((Object[]) endpoints), Collections.emptyList());
119113
}
120114

121115
private EndpointServerWebExchangeMatcher(List<Object> includes,

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/security/servlet/EndpointRequest.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,15 @@ public final static class EndpointRequestMatcher
9999
private RequestMatcher delegate;
100100

101101
private EndpointRequestMatcher() {
102-
super(EndpointPathProvider.class);
103-
this.includes = Collections.emptyList();
104-
this.excludes = Collections.emptyList();
102+
this(Collections.emptyList(), Collections.emptyList());
105103
}
106104

107105
private EndpointRequestMatcher(Class<?>[] endpoints) {
108-
super(EndpointPathProvider.class);
109-
this.includes = Arrays.asList((Object[]) endpoints);
110-
this.excludes = Collections.emptyList();
106+
this(Arrays.asList((Object[]) endpoints), Collections.emptyList());
111107
}
112108

113109
private EndpointRequestMatcher(String[] endpoints) {
114-
super(EndpointPathProvider.class);
115-
this.includes = Arrays.asList((Object[]) endpoints);
116-
this.excludes = Collections.emptyList();
110+
this(Arrays.asList((Object[]) endpoints), Collections.emptyList());
117111
}
118112

119113
private EndpointRequestMatcher(List<Object> includes, List<Object> excludes) {

0 commit comments

Comments
 (0)