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

master
Artemiy Sartakov 5 years ago
parent a0a8f0a8dd
commit 0cf8fc49d0
  1. 2
      src/org/jetbrains/java/decompiler/modules/decompiler/IdeaNotNullHelper.java

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

Loading…
Cancel
Save