psi: don't insert unnecessary parentheses when replacing expression (IDEA-220761)

GitOrigin-RevId: 7fe48d0f72581221a633373933b941c09b2c69ed
This commit is contained in:
Bas Leijdekkers
2019-08-22 01:50:10 +03:00
committed by intellij-monorepo-bot
parent 670c18edc5
commit ea73b88a7c
6 changed files with 34 additions and 4 deletions
@@ -0,0 +1,8 @@
// "Remove redundant cast(s)" "true"
class Test {
{
int i = 1;
int j = 2;
System.out.println(j * (i % j));
}
}
@@ -0,0 +1,8 @@
// "Remove redundant cast(s)" "true"
class Test {
{
int i = 1;
int j = 2;
System.out.println(j * ((i<caret>nt)(i % j)));
}
}