package hu.webarticum.treeprinter;

public abstract class AbstractTreeNode implements TreeNode {

    @Override
    public TreeNode getOriginalNode() {
        return this;
    }

    @Override
    public int[] getInsets() {
        return new int[] {0, 0, 0, 0};
    }

    @Override
    public boolean isDecorable() {
        return true;
    }

    @Override
    public boolean equals(Object other) {
        if (!(other instanceof TreeNode)) {
            return false;
        }
        return (this.getOriginalNode() == ((TreeNode)other).getOriginalNode());
    }
    
    @Override
    public int hashCode() {
        return System.identityHashCode(getOriginalNode());
    }

    @Override
    public String toString() {
        return getContent();
    }

}

@@ -345,343 +345,8 @@
  %7D%0A%0A
-    @Override%0A    public boolean equals(Object other) %7B%0A        if (!(other instanceof TreeNode)) %7B%0A            return false;%0A        %7D%0A        return (this.getOriginalNode() == ((TreeNode)other).getOriginalNode());%0A    %7D%0A    %0A    @Override%0A    public int hashCode() %7B%0A        return System.identityHashCode(getOriginalNode());%0A    %7D%0A%0A
     

Remove the dirty equals() method from AbstractTreeNode