fixed setParent

This commit is contained in:
ghidravore 2019-10-24 11:20:52 -04:00
parent 7b76afee93
commit b0609a1cb3

View file

@ -67,10 +67,6 @@ abstract class CoreGTreeNode implements Cloneable {
* @param parent the node that this node is being added to. * @param parent the node that this node is being added to.
*/ */
synchronized final void setParent(GTreeNode parent) { synchronized final void setParent(GTreeNode parent) {
if (this.parent != null) {
throw new IllegalStateException(
"Attempted to assign a node to a parent more than once!");
}
this.parent = parent; this.parent = parent;
} }