mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix wrong indentation in lambdas with body
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ class JavaLambda(override val variableName: String, override val body: JavaLambd
|
||||
|
||||
private fun JavaLambdaBody.convert(indent: Int): String =
|
||||
if (isExpression()) this.toCode(0)
|
||||
else "{" +
|
||||
else "{\n" +
|
||||
this.toCode(indent + 1) +
|
||||
"}".withIndent(indent)
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
y -> { y.method1();
|
||||
y -> {
|
||||
y.method1();
|
||||
y.method2();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user