diff --git a/src/main/java/net/kemitix/node/Node.java b/src/main/java/net/kemitix/node/Node.java index 50f75a0..b00bf67 100644 --- a/src/main/java/net/kemitix/node/Node.java +++ b/src/main/java/net/kemitix/node/Node.java @@ -56,8 +56,7 @@ public interface Node { /** * Fetch the data held within the node. * - * @return an Optional containing the node's data, or empty if the node has - * none + * @return an Optional containing the node's data, or empty if the node has none */ Optional getData(); @@ -138,8 +137,7 @@ public interface Node { * * @return the found or created child node * - * @deprecated use {@code node.findChild(child).orElseGet(() -> - * node.createChild(child))}; + * @deprecated use {@code node.findChild(child).orElseGet(() -> node.createChild(child))}; */ @Deprecated Node findOrCreateChild(T child); diff --git a/src/main/java/net/kemitix/node/NodeItem.java b/src/main/java/net/kemitix/node/NodeItem.java index 92eb923..5d83553 100644 --- a/src/main/java/net/kemitix/node/NodeItem.java +++ b/src/main/java/net/kemitix/node/NodeItem.java @@ -206,8 +206,7 @@ class NodeItem implements Node { * * @return the found or created child node * - * @deprecated use node.findChild(child).orElseGet(() -> node.createChild - * (child)); + * @deprecated use node.findChild(child).orElseGet(() -> node.createChild (child)); */ @Override @Deprecated