IfStatementMissingBreakInLoopInspection: added break if iterations have no effect after condition is met (IDEA-210094)

This commit is contained in:
Artemiy Sartakov
2019-04-08 18:37:32 +07:00
parent a0a8f0a8dd
commit 0cf8fc49d0

View File

@@ -93,6 +93,7 @@ public class IdeaNotNullHelper {
for (AnnotationExprent ann : annotations) { for (AnnotationExprent ann : annotations) {
if (ann.getClassName().equals("org/jetbrains/annotations/NotNull")) { if (ann.getClassName().equals("org/jetbrains/annotations/NotNull")) {
is_notnull_check = true; is_notnull_check = true;
break;
} }
} }
} }
@@ -162,6 +163,7 @@ public class IdeaNotNullHelper {
for (AnnotationExprent ann : annotations) { for (AnnotationExprent ann : annotations) {
if (ann.getClassName().equals("org/jetbrains/annotations/NotNull")) { if (ann.getClassName().equals("org/jetbrains/annotations/NotNull")) {
is_notnull_check = true; is_notnull_check = true;
break;
} }
} }
} }