diff --git a/x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/IndexDeprecationChecksTests.java b/x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/IndexDeprecationChecksTests.java index 4163c006e0692..283a98bcc4c94 100644 --- a/x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/IndexDeprecationChecksTests.java +++ b/x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/IndexDeprecationChecksTests.java @@ -722,7 +722,7 @@ public void testEmptyDataTierPreference() { } } - public static ClusterState clusterStateWithoutAllDataRoles() { + private static ClusterState clusterStateWithoutAllDataRoles() { DiscoveryNodes.Builder discoBuilder = DiscoveryNodes.builder(); List nodesList = org.elasticsearch.core.List.of( new DiscoveryNode("name_0", "node_0", buildNewFakeTransportAddress(), org.elasticsearch.core.Map.of(),