From 6253a3226f6d7bd1a6f9559a215a762a5bc741b5 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 22 Aug 2016 08:59:52 +0100 Subject: [PATCH] NodeItem: simplify stream().forEach() --- src/main/java/net/kemitix/node/NodeItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/kemitix/node/NodeItem.java b/src/main/java/net/kemitix/node/NodeItem.java index 3afd79a..caa23e0 100644 --- a/src/main/java/net/kemitix/node/NodeItem.java +++ b/src/main/java/net/kemitix/node/NodeItem.java @@ -335,7 +335,7 @@ class NodeItem implements Node { } else if (!children.isEmpty()) { sb.append(formatByDepth(unnamed, depth)); } - getChildren().stream().forEach(c -> sb.append(c.drawTree(depth + 1))); + getChildren().forEach(c -> sb.append(c.drawTree(depth + 1))); return sb.toString(); }