diff --git a/src/main/java/net/kemitix/node/NodeItem.java b/src/main/java/net/kemitix/node/NodeItem.java index 27ee22a..d11ff23 100644 --- a/src/main/java/net/kemitix/node/NodeItem.java +++ b/src/main/java/net/kemitix/node/NodeItem.java @@ -148,9 +148,8 @@ public class NodeItem implements Node { throw new NullPointerException("descendants"); } if (!descendants.isEmpty()) { - findOrCreateChild(descendants.get(0)) - .createDescendantLine( - descendants.subList(1, descendants.size())); + findOrCreateChild(descendants.get(0)).createDescendantLine( + descendants.subList(1, descendants.size())); } } @@ -183,8 +182,8 @@ public class NodeItem implements Node { throw new NullPointerException("child"); } return children.stream() - .filter((Node t) -> t.getData().equals(child)) - .findAny(); + .filter((Node t) -> t.getData().equals(child)) + .findAny(); } /**