From 083b42c2fb8bb7d3cc8060622246ab3c71012bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=A2=A6=E6=8A=80=E6=9C=AF?= <59639212@qq.com> Date: Thu, 27 Dec 2018 11:35:17 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/springblade/core/tool/node/NodeTest.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/blade-core-tool/src/main/java/org/springblade/core/tool/node/NodeTest.java b/blade-core-tool/src/main/java/org/springblade/core/tool/node/NodeTest.java index f59b02d..ea2f76f 100644 --- a/blade-core-tool/src/main/java/org/springblade/core/tool/node/NodeTest.java +++ b/blade-core-tool/src/main/java/org/springblade/core/tool/node/NodeTest.java @@ -13,7 +13,7 @@ import java.util.List; public class NodeTest { public static void main(String[] args) { - List list = new ArrayList<>(); + List list = new ArrayList<>(); list.add(new ForestNode(1, 0, "1")); list.add(new ForestNode(2, 0, "2")); list.add(new ForestNode(3, 1, "3")); @@ -24,11 +24,10 @@ public class NodeTest { list.add(new ForestNode(8, 5, "8")); list.add(new ForestNode(9, 6, "9")); list.add(new ForestNode(10, 9, "10")); - List tns = ForestNodeMerger.merge(list); - tns.forEach(node -> { - ForestNode n = (ForestNode) node; - System.out.println(JsonUtil.toJson(n)); - }); + List tns = ForestNodeMerger.merge(list); + tns.forEach(node -> + System.out.println(JsonUtil.toJson(node)) + ); } }