mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
EA-55951 - CCE: StreamApiMigrationInspection$ReplaceWithForeachCallFix.applyFix
This commit is contained in:
+4
-1
@@ -256,7 +256,10 @@ public class StreamApiMigrationInspection extends BaseJavaBatchLocalInspectionTo
|
||||
final PsiIfStatement ifStmt = extractIfStatement(body);
|
||||
|
||||
String foreEachText = wrapInBlock(body);
|
||||
String iterated = iteratedValue.getText();
|
||||
String iterated = iteratedValue instanceof PsiCallExpression ||
|
||||
iteratedValue instanceof PsiReferenceExpression ||
|
||||
iteratedValue instanceof PsiQualifiedExpression ||
|
||||
iteratedValue instanceof PsiParenthesizedExpression ? iteratedValue.getText() : "(" + iteratedValue.getText() + ")";
|
||||
if (ifStmt != null) {
|
||||
final PsiExpression condition = ifStmt.getCondition();
|
||||
if (condition != null) {
|
||||
|
||||
Reference in New Issue
Block a user