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 String toString() {
        return getContent();
    }

}

@@ -422,10 +422,326 @@
 %0A    %7D%0A%0A
+    @Override%0A    public boolean equals(Object obj) %7B%0A        if (!(obj instanceof AbstractTreeNode)) %7B%0A            return false;%0A        %7D%0A        return this.getContent().equals(((AbstractTreeNode) obj).getContent());%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return getContent().hashCode();%0A    %7D%0A%0A
 %7D%0A

Fix NPE when using BorderTreeNodeDecorator