NodeItem: apply code style
Signed-off-by: Paul Campbell <pcampbell@kemitix.net>
This commit is contained in:
parent
9daebcea46
commit
58363e474d
1 changed files with 4 additions and 5 deletions
|
@ -148,9 +148,8 @@ public class NodeItem<T> implements Node<T> {
|
||||||
throw new NullPointerException("descendants");
|
throw new NullPointerException("descendants");
|
||||||
}
|
}
|
||||||
if (!descendants.isEmpty()) {
|
if (!descendants.isEmpty()) {
|
||||||
findOrCreateChild(descendants.get(0))
|
findOrCreateChild(descendants.get(0)).createDescendantLine(
|
||||||
.createDescendantLine(
|
descendants.subList(1, descendants.size()));
|
||||||
descendants.subList(1, descendants.size()));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -183,8 +182,8 @@ public class NodeItem<T> implements Node<T> {
|
||||||
throw new NullPointerException("child");
|
throw new NullPointerException("child");
|
||||||
}
|
}
|
||||||
return children.stream()
|
return children.stream()
|
||||||
.filter((Node<T> t) -> t.getData().equals(child))
|
.filter((Node<T> t) -> t.getData().equals(child))
|
||||||
.findAny();
|
.findAny();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue