Details
Description
According to Efective Java book (http://devender.files.wordpress.com/2008/05/effectivejava.pdf), item 28:
"No wildcard type for return value"
Especially "User should not have to think about wildcards to use your API".
so
public List<? extends E> getChoices()
should be changed to
public List<E> getChoices()
and for WildcardListModel
protected List<? extends T> createSerializableVersionOf(List<? extends T> object)
should be changed to
protected List<T> createSerializableVersionOf(List<? extends T> object)
Probably there is a lot of such things in framework.
Attachments
Issue Links
- is related to
-
WICKET-5931 Improve generics for ListView: don't use wildcard for T
- Closed