Open GoogleCodeExporter opened 9 years ago
I have created a patch that fixes this problem. It also widens the generic
collections at some other locations.
The tests still run fine so I think there shouldn't be any problem
Original comment by johan...@familieschneider.info
on 23 Aug 2007 at 8:38
Attachments:
Thanks for the patch. I think we want to be more flexible about what we accept,
but
not so much about what we return.
Original comment by crazybob...@gmail.com
on 9 Sep 2007 at 9:19
I think returning a collection without a "?" is only useful, if someone wants
to add
anything to this collection.
So in my opinion "List<? extends Foo>" is better than "List<Foo>" as return
type if
the list is read only.
But this is just my opinion - do whatever you prefer.
Original comment by johan...@familieschneider.info
on 10 Sep 2007 at 3:43
Original issue reported on code.google.com by
robbie.v...@gmail.com
on 22 Aug 2007 at 9:50