mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
make method static: fix method refs in method body
EA-120553 - assert: MakeMethodStaticProcessor.changeSelfUsage
This commit is contained in:
+13
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user