mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
FoldExpressionIntoStream: disable for non-string separator and automatically convert char
CharToStringIntention#stringForCharLiteral moved to PsiLiteralUtil Fixes IDEA-195621 "Expression can be folded into Stream chain" produces red code when delimiter is char type
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
// "Fold expression into 'String.join'" "true"
|
||||
class Test {
|
||||
String foo(String a, String b, String c) {
|
||||
String s = String.join("_", a, b, c);
|
||||
return s;
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Fold expression into 'String.join'" "true"
|
||||
class Test {
|
||||
String foo(String a, String b, String c) {
|
||||
String s = a + <caret>'_' + b + '_' + c ;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Fold expression into 'String.join'" "false"
|
||||
class Test {
|
||||
String foo(String a, String b, String c) {
|
||||
String s = a + <caret>5 + b + 5 + c ;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user