From 9ec2668802d34aed90d84384e31a3256b57e5839 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 4 Sep 2016 19:49:13 +0100 Subject: [PATCH] NodeItem: wrap lines at 80 columns --- src/main/java/net/kemitix/node/NodeItem.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/kemitix/node/NodeItem.java b/src/main/java/net/kemitix/node/NodeItem.java index 2ee8b97..979fddd 100644 --- a/src/main/java/net/kemitix/node/NodeItem.java +++ b/src/main/java/net/kemitix/node/NodeItem.java @@ -292,7 +292,8 @@ class NodeItem implements Node { val item = path[0]; findChildByName(item) .orElseGet(() -> new NodeItem<>(null, item, this)) - .insertInPath(nodeItem, Arrays.copyOfRange(path, 1, path.length)); + .insertInPath(nodeItem, + Arrays.copyOfRange(path, 1, path.length)); } } @@ -314,8 +315,8 @@ class NodeItem implements Node { // place any data in the new node into the existing empty node nodeItem.getData().ifPresent(existing::setData); } else { - throw new NodeException("A non-empty node named '" + nodeItem.getName() - + "' already exists here"); + throw new NodeException("A non-empty node named '" + + nodeItem.getName() + "' already exists here"); } } else { // nothing with the same name exists