AbsractNodeItem: constructor children must not be null

This commit is contained in:
Paul Campbell 2016-09-13 22:41:24 +01:00
parent 4770a99983
commit afdaa082cc

View file

@ -49,6 +49,14 @@ abstract class AbstractNodeItem<T> implements Node<T> {
private Node<T> 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<T> parent, @NonNull final Set<Node<T>> children
) {