From 5c129b54b8af4a127ef3eb30b7b209f97990ada2 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 22 Aug 2016 09:04:16 +0100 Subject: [PATCH] NodeItem: put trailing comments on their own line --- src/main/java/net/kemitix/node/NodeItem.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/kemitix/node/NodeItem.java b/src/main/java/net/kemitix/node/NodeItem.java index caa23e0..e5db2fd 100644 --- a/src/main/java/net/kemitix/node/NodeItem.java +++ b/src/main/java/net/kemitix/node/NodeItem.java @@ -279,13 +279,15 @@ class NodeItem implements Node { @Override public void insertInPath(final Node nodeItem, final String... path) { if (path.length == 0) { - if (!nodeItem.isNamed()) { // nothing to conflict with + if (!nodeItem.isNamed()) { + // nothing to conflict with addChild(nodeItem); return; } String nodeName = nodeItem.getName(); final Optional> childNamed = findChildByName(nodeName); - if (!childNamed.isPresent()) { // nothing with the same name exists + if (!childNamed.isPresent()) { + // nothing with the same name exists addChild(nodeItem); return; }