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
This commit is contained in:
parent
e0661c5262
commit
9594b6f50f
|
@ -396,7 +396,7 @@ public class DiscoveryNodes extends AbstractDiffable<DiscoveryNodes> implements
|
|||
private final List<DiscoveryNode> removed;
|
||||
private final List<DiscoveryNode> added;
|
||||
|
||||
public Delta(@Nullable DiscoveryNode previousMasterNode, @Nullable DiscoveryNode newMasterNode, String localNodeId,
|
||||
private Delta(@Nullable DiscoveryNode previousMasterNode, @Nullable DiscoveryNode newMasterNode, String localNodeId,
|
||||
List<DiscoveryNode> removed, List<DiscoveryNode> added) {
|
||||
this.previousMasterNode = previousMasterNode;
|
||||
this.newMasterNode = newMasterNode;
|
||||
|
|
Loading…
Reference in New Issue