blob: f87edd2141592f28517d628bd0ed3cc38dad0f9e [file] [log] [blame]
class Test {
void bar() {
foo("");
}
static <T> void foo(T t){
new InnerClass<T>(t).invoke();
}
private static class InnerClass<T> {
private T t;
public InnerClass(T t) {
this.t = t;
}
public void invoke() {
if (t != null) foo(t);
}
}
}