Skip to content

Commit

Permalink
Merge pull request #897 from NicoNeureiter/master
Browse files Browse the repository at this point in the history
make Node members protected #327
  • Loading branch information
rbouckaert authored Apr 23, 2020
2 parents 3262d35 + 6d585a8 commit 69dd9b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/beast/evolution/tree/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ public class Node extends BEASTObject {
* Don't use m_left and m_right directly
* Use getChildCount() and getChild(x) or getChildren() instead
*/
List<Node> children = new ArrayList<>();
protected List<Node> children = new ArrayList<>();

/**
* parent node in the beast.tree, null if root *
*/
Node parent = null;
protected Node parent = null;

/**
* status of this node after an operation is performed on the state *
*/
int isDirty = Tree.IS_CLEAN;
protected int isDirty = Tree.IS_CLEAN;

/**
* meta-data contained in square brackets in Newick *
Expand Down Expand Up @@ -204,7 +204,7 @@ public void setParent(final Node parent) {
* @param parent the node to become parent
* @param inOperator if true, then startEditing() is called and setting the parent will make tree "filthy"
*/
void setParent(final Node parent, final boolean inOperator) {
protected void setParent(final Node parent, final boolean inOperator) {
if (inOperator) startEditing();
if (this.parent != parent) {
this.parent = parent;
Expand Down

0 comments on commit 69dd9b6

Please sign in to comment.