Martijn Dashorst created WICKET-5931:
----------------------------------------

             Summary: Improve generics for ListView: don't use wildcard for T
                 Key: WICKET-5931
                 URL: https://issues.apache.org/jira/browse/WICKET-5931
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 7.0.0-M5, 7.0.0-M6
            Reporter: Martijn Dashorst
             Fix For: 7.0.0


The generics for ListView<T> are that the model of each list item is not typed 
as T but rather ? extends T. This makes the model for the ListView read only, 
and you can't do anything with the list you get from the ListView.

For a ListView you care about the T so this should be pure, but you only care 
about that the model for the ListView is some sort of List, so ? extends 
List<T> is OK to use.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to