Skip to content

Commit 9594b6f

Browse files
committed
adjust visibility of DiscoveryNodes.Delta constructor
It can be private as it gets called by DiscoveryNodes#delta method, which is supposed to be the only way to create a Delta
1 parent e0661c5 commit 9594b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/elasticsearch/cluster/node/DiscoveryNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ public static class Delta {
396396
private final List<DiscoveryNode> removed;
397397
private final List<DiscoveryNode> added;
398398

399-
public Delta(@Nullable DiscoveryNode previousMasterNode, @Nullable DiscoveryNode newMasterNode, String localNodeId,
399+
private Delta(@Nullable DiscoveryNode previousMasterNode, @Nullable DiscoveryNode newMasterNode, String localNodeId,
400400
List<DiscoveryNode> removed, List<DiscoveryNode> added) {
401401
this.previousMasterNode = previousMasterNode;
402402
this.newMasterNode = newMasterNode;

0 commit comments

Comments
 (0)