mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IdempotentLoopBodyInspection: break makes loop as non-idempotent (IDEA-CR-25479)
This commit is contained in:
@@ -76,7 +76,6 @@ public class IdempotentLoopBodyInspection extends AbstractBaseJavaLocalInspectio
|
||||
|
||||
private boolean isAcceptableSideEffect(PsiElement e) {
|
||||
if (e instanceof PsiContinueStatement ||
|
||||
e instanceof PsiBreakStatement ||
|
||||
e instanceof PsiReturnStatement ||
|
||||
e instanceof PsiThrowStatement) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user