Files
Tagir Valeev a762d39396 [java-refactoring] isFirstUse: take PsiAssignmentExpression into account
Fixes IDEA-361852 Java Inline Method refactor introduces intermediate variables

GitOrigin-RevId: 680fbb62f3440b7ae29f4de1793260fe5be0ab36
2024-11-11 16:52:09 +00:00

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();
}
}