mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-01 09:04:15 +07:00
GitOrigin-RevId: 5bf28e687272eb39f9207989f9ef04a26acb2f27
14 lines
429 B
Java
14 lines
429 B
Java
package inspections.cancellationCheckInLoops;
|
|
|
|
import com.intellij.util.concurrency.annotations.RequiresReadLock;
|
|
|
|
|
|
class Clazz {
|
|
|
|
@RequiresReadLock
|
|
public static void foo() {
|
|
<warning descr="Cancellation check 'com.intellij.openapi.progress.ProgressManager.checkCanceled' should be the first statement in a loop body">for<caret></warning> (int i = 0; i < 5; i++) {
|
|
// check comments
|
|
}
|
|
}
|
|
} |