moving tests

This commit is contained in:
Dmitry Jemerov
2009-09-10 19:49:38 +04:00
parent e389680982
commit b43c03ca2f
305 changed files with 32 additions and 4 deletions
@@ -0,0 +1,27 @@
import java.util.*;
class Foo {
public void foo(Bar bar) {
for (Iterator it = bar.iterator(); it.hasNext();) {
final String o = (String) it.next();
}
}
}
class Bar<CN extends Bar> {
private List<CN> cns;
/**
* @deprecated
*/
public Iterator<CN> <caret>iterator() {
return getCns().iterator();
}
public List<CN> getCns() {
if (cns == null) {
return Collections.emptyList();
}
return cns;
}
}