mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
20 lines
365 B
Java
20 lines
365 B
Java
class T {
|
|
Object myObject;
|
|
|
|
void test() {
|
|
new MyRunnable(myObject).run();
|
|
}
|
|
|
|
private static class <caret>MyRunnable implements Runnable {
|
|
private Object myObject;
|
|
|
|
public MyRunnable(Object object) {
|
|
this.myObject = object;
|
|
}
|
|
|
|
public void run() {
|
|
myObject.toString();
|
|
}
|
|
}
|
|
}
|