mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
ConstantConditionalExpressionInspection: respect precedence when creating type-cast
Fixes EA-137355 - CCE: ConstantConditionalExpressionInspection$ConstantConditionalFix.doFix Also fix removing parentheses inside RemoveRedundantCastUtil#removeCast
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Simplify" "true"
|
||||
class Test {
|
||||
void test() {
|
||||
Object s = "foo" + "bar";
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Simplify" "true"
|
||||
class Test {
|
||||
void test() {
|
||||
Object s = <caret>true ? "foo" + "bar" : 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user