commented tests for use interface where possible refactoring

This commit is contained in:
Anna Kozlova
2012-06-01 21:40:09 +04:00
parent b839853c4a
commit 472d16982d
9 changed files with 148 additions and 0 deletions
@@ -0,0 +1,11 @@
import java.util.*;
interface Int {}
class Impl implements Int {
}
class Usage {
void f(List<Int> l){}
void bar() {
f(Collections.<Int>emptyList());
}
}
@@ -0,0 +1,11 @@
import java.util.*;
interface Int {}
class Impl implements Int {
}
class Usage {
void f(List<Impl> l){}
void bar() {
f(Collections.<Impl>emptyList());
}
}