diff --git a/rewrite-yaml/src/main/java/org/openrewrite/yaml/internal/YamlPrinter.java b/rewrite-yaml/src/main/java/org/openrewrite/yaml/internal/YamlPrinter.java index b5e7b5321d4..0a9c885855f 100755 --- a/rewrite-yaml/src/main/java/org/openrewrite/yaml/internal/YamlPrinter.java +++ b/rewrite-yaml/src/main/java/org/openrewrite/yaml/internal/YamlPrinter.java @@ -201,6 +201,7 @@ private void afterSyntax(Yaml y, PrintOutputCapture
p) { } } + // todo if we can keep the current indentation in the context of the printer that would save some cpu cycles private int countCurrentIndentation(PrintOutputCapture
printOutputCapture) { String[] lines = printOutputCapture.out.toString().split("\n"); String lastLine = lines[lines.length - 1];