Skip to content

Commit

Permalink
chore: reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
kunli2 committed Nov 28, 2023
1 parent 8d45a33 commit 3e72296
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
}
Expand Down

0 comments on commit 3e72296

Please sign in to comment.