mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 05:20:54 +07:00
20 lines
389 B
Java
20 lines
389 B
Java
class UseBuilder {
|
|
void test(Builder builder, int[] arr) {
|
|
newMethod(builder, arr[0]).foo("abc");
|
|
}
|
|
|
|
private Builder newMethod(Builder builder, int x) {
|
|
return builder.foo("xyz").bar(x);
|
|
}
|
|
|
|
static class Builder {
|
|
Builder foo(String s) {
|
|
return this;
|
|
}
|
|
|
|
Builder bar(int x) {
|
|
return this;
|
|
}
|
|
}
|
|
}
|