NodeItem: wrap lines at 80 columns
This commit is contained in:
parent
e4c4fdf4bc
commit
9ec2668802
1 changed files with 4 additions and 3 deletions
|
@ -292,7 +292,8 @@ class NodeItem<T> implements Node<T> {
|
||||||
val item = path[0];
|
val item = path[0];
|
||||||
findChildByName(item)
|
findChildByName(item)
|
||||||
.orElseGet(() -> new NodeItem<>(null, item, this))
|
.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<T> implements Node<T> {
|
||||||
// place any data in the new node into the existing empty node
|
// place any data in the new node into the existing empty node
|
||||||
nodeItem.getData().ifPresent(existing::setData);
|
nodeItem.getData().ifPresent(existing::setData);
|
||||||
} else {
|
} else {
|
||||||
throw new NodeException("A non-empty node named '" + nodeItem.getName()
|
throw new NodeException("A non-empty node named '"
|
||||||
+ "' already exists here");
|
+ nodeItem.getName() + "' already exists here");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// nothing with the same name exists
|
// nothing with the same name exists
|
||||||
|
|
Loading…
Reference in a new issue