[java-completion] MissingLoopBodyFixer: wrap body only when it's indented

Fixes IDEA-294142 Complete Current Statement action can affect the next independent statement

GitOrigin-RevId: cf6c81b5b62997a8925c2d68bf14533abb135d2c
This commit is contained in:
Tagir Valeev
2022-05-17 09:21:23 +02:00
committed by intellij-monorepo-bot
parent 56a60c2688
commit c1d6bd977f
4 changed files with 57 additions and 24 deletions

View File

@@ -0,0 +1,6 @@
class X {{
int[] a = new int[3];
long res = 0;
for (int val : a)<caret>
System.out.println(res);
}}