From 3e7229606fa4146d9c5c1ff96c1ec67d0b55824f Mon Sep 17 00:00:00 2001 From: Kun Li Date: Tue, 28 Nov 2023 06:50:38 -0800 Subject: [PATCH] chore: reformat code --- .../openrewrite/java/TreeVisitingPrinter.java | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/rewrite-java/src/main/java/org/openrewrite/java/TreeVisitingPrinter.java b/rewrite-java/src/main/java/org/openrewrite/java/TreeVisitingPrinter.java index 3a8b863fb4a..325cd9f1926 100644 --- a/rewrite-java/src/main/java/org/openrewrite/java/TreeVisitingPrinter.java +++ b/rewrite-java/src/main/java/org/openrewrite/java/TreeVisitingPrinter.java @@ -151,20 +151,20 @@ private void connectToLatestSibling(int depth) { private static String printTreeElement(Tree tree) { // skip some specific types printed in the output to make the output looks clean - if (tree instanceof J.CompilationUnit - || tree instanceof J.ClassDeclaration - || tree instanceof J.Block - || tree instanceof J.Empty - || tree instanceof J.Try - || tree instanceof J.Try.Catch - || tree instanceof J.ForLoop - || tree instanceof J.WhileLoop - || tree instanceof J.DoWhileLoop - || tree instanceof J.Lambda - || tree instanceof J.Lambda.Parameters - || tree instanceof J.If - || tree instanceof J.EnumValueSet - || tree instanceof J.TypeParameter + if (tree instanceof J.CompilationUnit || + tree instanceof J.ClassDeclaration || + tree instanceof J.Block || + tree instanceof J.Empty || + tree instanceof J.Try || + tree instanceof J.Try.Catch || + tree instanceof J.ForLoop || + tree instanceof J.WhileLoop || + tree instanceof J.DoWhileLoop || + tree instanceof J.Lambda || + tree instanceof J.Lambda.Parameters || + tree instanceof J.If || + tree instanceof J.EnumValueSet || + tree instanceof J.TypeParameter ) { return ""; }