[
https://issues.apache.org/jira/browse/WICKET-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14597344#comment-14597344
]
ASF subversion and git services commented on WICKET-5931:
---------------------------------------------------------
Commit bfef233cecbeba5e5b68acb72f164e03442799dc in wicket's branch
refs/heads/master from [~dashorst]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=bfef233 ]
WICKET-5931 Improved generics for ListView<T>
This fixes WICKET-5931 by removing the wildcard for T.
> 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)