mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 23:08:54 +07:00
Added SurroundResult#collapse method to collapse expanded code block back. Now, InlineMethodProcessor is simpler and preserves semantics at the call site more often. Fixes IDEA-297364 Inline Method changes semantic for a method throwing exception GitOrigin-RevId: 2ceb23e372e2876202dac687048ac86fb23cfc3b
14 lines
212 B
Plaintext
14 lines
212 B
Plaintext
class X {
|
|
int x;
|
|
|
|
{
|
|
if (Math.random() > 0.5) {
|
|
int one = 1 * 1 + 2 * 2;
|
|
int two = 3 * 3;
|
|
x = one / two + 1;
|
|
} else {
|
|
x = 0;
|
|
}
|
|
}
|
|
|
|
} |