From 58363e474d5574f2f0a4585cfb6754e95f9a621a Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 14 Mar 2016 15:43:21 +0000 Subject: [PATCH] NodeItem: apply code style Signed-off-by: Paul Campbell --- src/main/java/net/kemitix/node/NodeItem.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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(); } /**