mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
Fixes IDEA-361852 Java Inline Method refactor introduces intermediate variables (cherry picked from commit 680fbb62f3440b7ae29f4de1793260fe5be0ab36) IJ-CR-149087 GitOrigin-RevId: c9ede4356696412b656b0295f21f534cce04bc30
17 lines
258 B
Java
17 lines
258 B
Java
import java.util.List;
|
|
|
|
public class Foo {
|
|
|
|
public Foo hi() {
|
|
System.out.println("hi");
|
|
return this;
|
|
}
|
|
|
|
public Foo hiTwice() {
|
|
return hi().hi();
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
new Foo().hi().<caret>hiTwice().hi();
|
|
}
|
|
} |