From 0cf8fc49d02282c880a145ba5eebed810024ff63 Mon Sep 17 00:00:00 2001 From: Artemiy Sartakov Date: Mon, 8 Apr 2019 18:37:32 +0700 Subject: [PATCH] IfStatementMissingBreakInLoopInspection: added break if iterations have no effect after condition is met (IDEA-210094) --- .../java/decompiler/modules/decompiler/IdeaNotNullHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/IdeaNotNullHelper.java b/src/org/jetbrains/java/decompiler/modules/decompiler/IdeaNotNullHelper.java index f164286..9598b3c 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/IdeaNotNullHelper.java +++ b/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; } } }