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); } }