mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
test++
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
class AnonymousTest {
|
||||
interface Thing {
|
||||
boolean thing();
|
||||
}
|
||||
|
||||
void dupeHolder() {
|
||||
Thing thing = new Thing() {
|
||||
public boolean thing() {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Thing <caret>duplicator(final boolean thingReturn) {
|
||||
return new Thing() {
|
||||
public boolean thing() {
|
||||
return thingReturn;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user