IfStatementMissingBreakInLoopInspection: added break if iterations have no effect after condition is met (IDEA-210094)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user