Skip to content

Commit ac9e0a5

Browse files
authored
Fixed DefaultSettingsProvider to use Java 17 (#116029)
It is needed to be able to backport the change to the 8.x. Having same code for both versions can help us to avoid some merge conflicts in the future.
1 parent 4573ab8 commit ac9e0a5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/DefaultSettingsProvider.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ public Map<String, String> get(LocalNodeSpec nodeSpec) {
9595

9696
private boolean isMultiNodeCluster(LocalClusterSpec cluster) {
9797
return cluster.getNodes().size() > 1
98-
|| cluster.getNodes()
99-
.getFirst()
100-
.getSetting(DISCOVERY_TYPE_SETTING, MULTI_NODE_DISCOVERY_TYPE)
101-
.equals(MULTI_NODE_DISCOVERY_TYPE);
98+
|| cluster.getNodes().get(0).getSetting(DISCOVERY_TYPE_SETTING, MULTI_NODE_DISCOVERY_TYPE).equals(MULTI_NODE_DISCOVERY_TYPE);
10299
}
103100
}

0 commit comments

Comments
 (0)