mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +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);
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
public class Test {
|
||||
public Test(int i){}
|
||||
public Test(){
|
||||
this(2);
|
||||
}
|
||||
void foo(){}
|
||||
public static void main(String[] args){
|
||||
new Builder().setI(1).createTest().foo();
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
public class Test {
|
||||
public Test(int i){}
|
||||
public Test(){
|
||||
this(2);
|
||||
}
|
||||
void foo(){}
|
||||
public static void main(String[] args){
|
||||
new Test(1).foo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user