StreamToLoopInspection: LOG.error instead of exception rethrowing (IDEA-CR-16701)

This commit is contained in:
Tagir Valeev
2016-12-13 09:36:41 +07:00
parent 1e0fdbf82c
commit 1e61604d88
@@ -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);
}
}