class Foo {
static class Bar {
}
static void change (Bar bar) {
bar.name = "msg 2";
}
public static void main
(String[] args
) { Bar bar = new Bar();
change(bar);
}
}
Y2xhc3MgRm9vIHsKCXN0YXRpYyBjbGFzcyBCYXIgewoJCXB1YmxpYyBTdHJpbmcgbmFtZSA9ICJtc2cgMSI7Cgl9CgoJc3RhdGljIHZvaWQgY2hhbmdlIChCYXIgYmFyKSB7CgkJYmFyLm5hbWUgPSAibXNnIDIiOwoJfQoKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB7CgkJQmFyIGJhciA9IG5ldyBCYXIoKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4oYmFyLm5hbWUpOwoJCWNoYW5nZShiYXIpOwoJCVN5c3RlbS5vdXQucHJpbnRsbihiYXIubmFtZSk7Cgl9Cn0=