wangyao5 / json-smart

Automatically exported from code.google.com/p/json-smart
0 stars 0 forks source link

Enhance Generic Types #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

it would be really nice to improve the generics of JSONArray static methods.
A fix "List<Object>" is very unflexible at this point, and leads always to 
casts.
List<? extends Object> would be a much better Api.
See for further details:
http://en.wikipedia.org/wiki/Wildcard_%28Java%29#Example:_Lists

Regards

Original issue reported on code.google.com by bast.r...@gmail.com on 12 Jul 2011 at 7:06

GoogleCodeExporter commented 9 years ago
Fixed in JsonObject an in JsonArray.

Original comment by uriel.chemouni on 12 Jul 2011 at 9:51