From afdaa082cc6c6e36b628af76b7e3ea06b3147d48 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 13 Sep 2016 22:41:24 +0100 Subject: [PATCH] AbsractNodeItem: constructor children must not be null --- src/main/java/net/kemitix/node/AbstractNodeItem.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/net/kemitix/node/AbstractNodeItem.java b/src/main/java/net/kemitix/node/AbstractNodeItem.java index b11ba08..7954f1d 100644 --- a/src/main/java/net/kemitix/node/AbstractNodeItem.java +++ b/src/main/java/net/kemitix/node/AbstractNodeItem.java @@ -49,6 +49,14 @@ abstract class AbstractNodeItem implements Node { private Node parent; + /** + * Constructor. + * + * @param data the data of the node + * @param name the name of the node + * @param parent the parent of the node, or null for a root node + * @param children the children of the node - must not be null + */ protected AbstractNodeItem( final T data, final String name, final Node parent, @NonNull final Set> children ) {