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:
javanna 2016-11-19 15:25:26 +01:00 committed by Luca Cavanna
parent e0661c5262
commit 9594b6f50f
1 changed files with 1 additions and 1 deletions

View File

@ -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;