Skip to content

Commit 7b356d4

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 160d763 commit 7b356d4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/allocation/allocator/DesiredBalanceReconciler.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ private void updateDesireBalanceMetrics(AllocationStats allocationStats) {
180180
allocation.clusterInfo(),
181181
desiredBalance
182182
);
183-
Map<DiscoveryNode, NodeAllocationStatsAndWeight> nodeToStatsAndWeights = new HashMap<>(
184-
nodeIDsToStatsAndWeights.size()
185-
);
183+
Map<DiscoveryNode, NodeAllocationStatsAndWeight> nodeToStatsAndWeights = new HashMap<>(nodeIDsToStatsAndWeights.size());
186184
for (var nodeStatsAndWeight : nodeIDsToStatsAndWeights.entrySet()) {
187185
var node = allocation.nodes().get(nodeStatsAndWeight.getKey());
188186
assert node != null;

0 commit comments

Comments
 (0)