[java-completion] Do not insert semicolon automatically into for-update statement

Fixes IDEA-326232 Suppress semicolon for the next iteration part in for-loop

GitOrigin-RevId: 4ceeb1c673fdbabf59f2e31610a1012f1fb07cc4
This commit is contained in:
Tagir Valeev
2023-07-31 15:43:26 +02:00
committed by intellij-monorepo-bot
parent 6c02bcf415
commit e4aa26c19c
4 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import java.util.*;
class SomeTest {
void a() {
Collection<?> c = Collections.emptyList();
for(Iterator<?> i=c.iterator(); i.hasNext();i.rem<caret>) {
}
}
}

View File

@@ -0,0 +1,11 @@
import java.util.*;
class SomeTest {
void a() {
Collection<?> c = Collections.emptyList();
for(Iterator<?> i=c.iterator(); i.hasNext();i.remove()<caret>) {
}
}
}