mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
15 lines
223 B
Java
15 lines
223 B
Java
import java.util.Date;
|
|
|
|
class C {
|
|
private final String s;
|
|
|
|
C(String s) {
|
|
this.s = s;
|
|
}
|
|
|
|
Object m() {
|
|
return new Object() {
|
|
private final Date d = new Date(s) {}; // reference to s is legal
|
|
};
|
|
}
|
|
} |