NodeItem: fix up
This commit is contained in:
parent
45bd77bbca
commit
b456e18316
1 changed files with 4 additions and 4 deletions
|
@ -287,6 +287,10 @@ public class NodeItem<T> implements Node<T> {
|
|||
public Node<T> createChild(final T child) {
|
||||
if (child == null) {
|
||||
throw new NullPointerException("child");
|
||||
}
|
||||
return new NodeItem<>(child, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Optional<Node<T>> findChildNamed(final String named) {
|
||||
if (named == null) {
|
||||
|
@ -387,7 +391,3 @@ public class NodeItem<T> implements Node<T> {
|
|||
}
|
||||
|
||||
}
|
||||
return new NodeItem<>(child, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue