mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test++
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
public class Builder {
|
||||
private int[] i;
|
||||
|
||||
public Builder setI(int... i) {
|
||||
this.i = i;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Test createTest() {
|
||||
return new Test(i);
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
public class Test {
|
||||
public Test(int... i){}
|
||||
void foo(){}
|
||||
public static void main(String[] args){
|
||||
new Builder().setI(1, 2, 3).createTest().foo();
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
public class Test {
|
||||
public Test(int... i){}
|
||||
void foo(){}
|
||||
public static void main(String[] args){
|
||||
new Test(1, 2, 3).foo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user