mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +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
15 lines
219 B
Plaintext
15 lines
219 B
Plaintext
class Temp {
|
|
class Set {
|
|
native Object size();
|
|
}
|
|
|
|
public Object foo(Set bar) {
|
|
if (bar.size() < 2) {// Inline this
|
|
bar.size(); // or online this
|
|
return null;
|
|
}
|
|
|
|
return bar;
|
|
}
|
|
|
|
} |