mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
- Added support for forEach() and similar methods, and ContainerUtil.process() GitOrigin-RevId: fc9b66f3584cf94d603d9a84825f4142de92544d
10 lines
425 B
Kotlin
10 lines
425 B
Kotlin
package inspections.insertCancellationCheckFix
|
|
|
|
import com.intellij.util.concurrency.annotations.RequiresReadLock
|
|
import inspections.cancellationCheckInLoops.Foo.doSomething
|
|
|
|
@RequiresReadLock
|
|
fun main(iterator: Iterator<String>) {
|
|
iterator.<warning descr="Cancellation check 'com.intellij.openapi.progress.ProgressManager.checkCanceled' should be the first statement in a loop body">for<caret>EachRemaining</warning> {}
|
|
}
|