From 1e61604d889fe64ee1a2d8b75965e150a44a9ac0 Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Tue, 13 Dec 2016 09:34:51 +0700 Subject: [PATCH] StreamToLoopInspection: LOG.error instead of exception rethrowing (IDEA-CR-16701) --- .../codeInspection/streamToLoop/StreamToLoopInspection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/codeInspection/streamToLoop/StreamToLoopInspection.java b/java/java-impl/src/com/intellij/codeInspection/streamToLoop/StreamToLoopInspection.java index 2c1469bf0282..18129807a1cf 100644 --- a/java/java-impl/src/com/intellij/codeInspection/streamToLoop/StreamToLoopInspection.java +++ b/java/java-impl/src/com/intellij/codeInspection/streamToLoop/StreamToLoopInspection.java @@ -275,7 +275,7 @@ public class StreamToLoopInspection extends BaseJavaBatchLocalInspectionTool { // Just in case if something went wrong: at least try to restore the original stream code temporaryStreamPlaceholder.replace(factory.createExpressionFromText(text, temporaryStreamPlaceholder)); } - throw new RuntimeException("Error converting Stream to loop: "+text, ex); + LOG.error("Error converting Stream to loop: "+text, ex); } }