This commit is contained in:
Dmitry Jemerov
2009-09-10 20:43:40 +04:00
parent e9214df509
commit f9dbab8f6d
149 changed files with 7 additions and 0 deletions
@@ -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;
}
};
}
}