mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
21 lines
359 B
Java
21 lines
359 B
Java
class AnonymousTest1 {
|
|
interface Thing {
|
|
boolean thing();
|
|
}
|
|
|
|
void dupeHolder() {
|
|
if (new Thing() {
|
|
public boolean thing() {
|
|
return false;
|
|
}
|
|
}.thing());
|
|
}
|
|
|
|
void <caret>duplicator(final boolean thingReturn) {
|
|
if (new Thing() {
|
|
public boolean thing() {
|
|
return thingReturn;
|
|
}
|
|
}.thing());
|
|
}
|
|
} |