mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-28 15:32:50 +07:00
3368f8e2d5
As processing the previous operands may completely rewrite the whole polyadic expression, we have to stop if this happens No need to find the replacement and process the tail: it's already processed in removeParensFromParenthesizedExpression Fixes EA-141996 - PIEAE: CompositePsiElement.getContainingFile GitOrigin-RevId: 64162346a612e2d95eec426419bef51d6c5d46a3
13 lines
218 B
Java
13 lines
218 B
Java
// "Simplify boolean expression" "true"
|
|
class X {
|
|
|
|
void test(int a, int b) {
|
|
if (<caret>true && (a + 1) + foo((a), b) > 5) {
|
|
}
|
|
|
|
}
|
|
|
|
private int foo(int a, int b) {
|
|
return a+b;
|
|
}
|
|
} |