mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
test++
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
public class Builder<T> {
|
||||
private T t;
|
||||
|
||||
public Builder setT(T t) {
|
||||
this.t = t;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Test createTest() {
|
||||
return new Test(t);
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
public class Test<T> {
|
||||
public Test(T t){}
|
||||
void foo(){}
|
||||
public static void main(T args){
|
||||
new Builder().setT(args).createTest().foo();
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
public class Test<T> {
|
||||
public Test(T t){}
|
||||
void foo(){}
|
||||
public static void main(T args){
|
||||
new Test(args).foo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user