This commit is contained in:
Dmitry Jemerov
2009-09-10 20:13:55 +04:00
parent f6b9382f4e
commit 40139d670a
49 changed files with 14 additions and 7 deletions

View File

@@ -0,0 +1,3 @@
class A<T>{
void foo(T t){}
}

View File

@@ -0,0 +1,12 @@
public class Extracted<R> {
private final Test<R> test;
private R myT;
public Extracted(Test<R> test) {
this.test = test;
}
void bar() {
test.foo(myT);
}
}

View File

@@ -0,0 +1,5 @@
class Test<R> extends A <R>{
void foo(R t){}
}

View File

@@ -0,0 +1,3 @@
class A<T>{
void foo(T t){}
}

View File

@@ -0,0 +1,9 @@
class Test<R> extends A <R>{
public R myT;
void foo(R t){}
void bar(){
foo(myT);
}
}