mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
16 lines
311 B
Java
16 lines
311 B
Java
class UseBuilder {
|
|
void test(Builder builder, int[] arr) {
|
|
<selection>builder.foo("xyz").bar(arr[0])</selection>.foo("abc");
|
|
}
|
|
|
|
static class Builder {
|
|
Builder foo(String s) {
|
|
return this;
|
|
}
|
|
|
|
Builder bar(int x) {
|
|
return this;
|
|
}
|
|
}
|
|
}
|