mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 01:57:50 +07:00
IDEA-50592 'Surround with cast' for binary expressions (e.g. a+b) should parenthesize those expressions
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
void foo(int a, double b) {
|
||||
if (<selection><caret>a + b</selection>) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
void foo(int a, double b) {
|
||||
if (((<caret>) (a + b))) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
class Test {
|
||||
void foo() {
|
||||
String a = "", b = "", c = "";
|
||||
if (a + (() b + c)) {
|
||||
if (a + (() (b + c))) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user