Skip to content

Commit 046cb01

Browse files
committed
Remove CHECKS abstraction
1 parent 7e6af7b commit 046cb01

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/ClusterDeprecationChecker.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@
1616
import java.io.IOException;
1717
import java.util.ArrayList;
1818
import java.util.List;
19-
import java.util.function.BiConsumer;
2019

2120
/**
2221
* Cluster-specific deprecation checks, this is used to populate the {@code cluster_settings} field
2322
*/
2423
public class ClusterDeprecationChecker {
2524

2625
private static final Logger logger = LogManager.getLogger(ClusterDeprecationChecker.class);
27-
private final List<BiConsumer<List<TransformConfig>, List<DeprecationIssue>>> CHECKS = List.of(this::checkTransformSettings);
2826
private final NamedXContentRegistry xContentRegistry;
2927

3028
ClusterDeprecationChecker(NamedXContentRegistry xContentRegistry) {
@@ -33,7 +31,7 @@ public class ClusterDeprecationChecker {
3331

3432
public List<DeprecationIssue> check(List<TransformConfig> transformConfigs) {
3533
List<DeprecationIssue> allIssues = new ArrayList<>();
36-
CHECKS.forEach(check -> check.accept(transformConfigs, allIssues));
34+
checkTransformSettings(transformConfigs, allIssues);
3735
return allIssues;
3836
}
3937

0 commit comments

Comments
 (0)