If I call Tree.getAllNodes(parentNode) and parentNode has child nodes, I get an array of nodes, including the parentNode itself.
If I call Tree.getAllNodes(parentNode) and parentNode has no child nodes, I get null.
Wouldn’t it be more logical to return an array containing only the parentNode?
If I call Tree.getAllNodes(parentNode) and parentNode has no child nodes, I get null.
Wouldn’t it be more logical to return an array containing only the parentNode?
Comment