mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
24 lines
371 B
Java
24 lines
371 B
Java
public class Foo {
|
|
public static void f<caret>oo() {
|
|
bar(new Runnable() {
|
|
@Override
|
|
public void run() {
|
|
doRun();
|
|
}
|
|
|
|
private void doRun() {
|
|
// Woo-hoo
|
|
}
|
|
});
|
|
}
|
|
|
|
public static void bar(final Runnable runnable) {
|
|
runnable.run();
|
|
}
|
|
}
|
|
|
|
class Bar {
|
|
public static void main(String[] args) {
|
|
Foo.foo();
|
|
}
|
|
} |