calls on raw type: need erasure

This commit is contained in:
anna
2013-03-01 20:05:19 +01:00
parent fcd09e4b99
commit 140a30285d
3 changed files with 29 additions and 1 deletions
@@ -0,0 +1,17 @@
import java.util.Collections;
import java.util.List;
class Bar {
private List<Property> getChildren(Property property, PropertiesContainer c) {
return property.getChildren(c);
}
static class PropertiesContainer<M extends Property> {}
}
class Property<K> {
public List<? extends Property<K>> getChildren(K container) {
return Collections.emptyList();
}
}