mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
Inline method: use StatementExtractor when removing unused parameters
IDEA-215429 Inline method with unused parameter causes uncompilable or unintended code GitOrigin-RevId: d701c4a49b64202144c4d5ba80047d8f846f1767
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f1afe2cc56
commit
2ad37d8194
@@ -0,0 +1,15 @@
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
class Temp {
|
||||
public Object foo(Set<String> bar) {
|
||||
if (bar.size() < 2) {
|
||||
// Inline this
|
||||
bar.size(); // or online this
|
||||
return null;
|
||||
}
|
||||
|
||||
return bar;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user