Make EndpointRequestMatcher#excluding public
Fixes gh-12354
This commit is contained in:
@@ -125,13 +125,13 @@ public final class EndpointRequest {
|
||||
this.excludes = excludes;
|
||||
}
|
||||
|
||||
EndpointServerWebExchangeMatcher excluding(Class<?>... endpoints) {
|
||||
public EndpointServerWebExchangeMatcher excluding(Class<?>... endpoints) {
|
||||
List<Object> excludes = new ArrayList<>(this.excludes);
|
||||
excludes.addAll(Arrays.asList((Object[]) endpoints));
|
||||
return new EndpointServerWebExchangeMatcher(this.includes, excludes);
|
||||
}
|
||||
|
||||
EndpointServerWebExchangeMatcher excluding(String... endpoints) {
|
||||
public EndpointServerWebExchangeMatcher excluding(String... endpoints) {
|
||||
List<Object> excludes = new ArrayList<>(this.excludes);
|
||||
excludes.addAll(Arrays.asList((Object[]) endpoints));
|
||||
return new EndpointServerWebExchangeMatcher(this.includes, excludes);
|
||||
|
||||
@@ -120,13 +120,13 @@ public final class EndpointRequest {
|
||||
this.excludes = excludes;
|
||||
}
|
||||
|
||||
EndpointRequestMatcher excluding(Class<?>... endpoints) {
|
||||
public EndpointRequestMatcher excluding(Class<?>... endpoints) {
|
||||
List<Object> excludes = new ArrayList<>(this.excludes);
|
||||
excludes.addAll(Arrays.asList((Object[]) endpoints));
|
||||
return new EndpointRequestMatcher(this.includes, excludes);
|
||||
}
|
||||
|
||||
EndpointRequestMatcher excluding(String... endpoints) {
|
||||
public EndpointRequestMatcher excluding(String... endpoints) {
|
||||
List<Object> excludes = new ArrayList<>(this.excludes);
|
||||
excludes.addAll(Arrays.asList((Object[]) endpoints));
|
||||
return new EndpointRequestMatcher(this.includes, excludes);
|
||||
|
||||
Reference in New Issue
Block a user