make method static: fix method refs in method body

EA-120553 - assert: MakeMethodStaticProcessor.changeSelfUsage
This commit is contained in:
Anna Kozlova
2018-05-23 12:57:08 +03:00
parent d841a4c084
commit 0141c99371
4 changed files with 62 additions and 9 deletions
@@ -0,0 +1,13 @@
import java.util.List;
import java.util.function.BiConsumer;
class IWalker {
public static void walk(I e) {
e.getChildren().forEach(IWalker::walk);
final BiConsumer<IWalker, I> walk = (iWalker, e1) -> IWalker.walk(e1);
}
interface I {
List<I> getChildren();
}
}