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,17 @@
class AnonymousTest1 {
interface Thing {
boolean thing();
}
void dupeHolder() {
duplicator(false);
}
void duplicator(final boolean thingReturn) {
if (new Thing() {
public boolean thing() {
return thingReturn;
}
}.thing());
}
}