JSONObject produces warning in code
Opened this issue · 6 comments
GoogleCodeExporter commented
When using JSONObject, we get the following warning:
Type safety: The method put(Object, Object) belongs to the raw type HashMap. References to generic type HashMap<K,V> should be parameterized
(see
http://stackoverflow.com/q/2646613/344286
http://stackoverflow.com/q/16415436/344286 )
It would be a good thing if JSONObject would implement HashMap<K, V> so we
don't have to wrap code in a warning suppression or write an adapter.
Original issue reported on code.google.com by waynejwe...@gmail.com
on 16 Dec 2013 at 5:15
GoogleCodeExporter commented
Original comment by fangyid...@gmail.com
on 19 Dec 2013 at 3:26
- Changed state: Accepted
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
GoogleCodeExporter commented
[deleted comment]
GoogleCodeExporter commented
Please include JSONArray, this would fix the bulk of them.
Original comment by ja...@jcalfee.info
on 11 Mar 2014 at 1:28
GoogleCodeExporter commented
[deleted comment]
GoogleCodeExporter commented
I'm including all of org.json.simple.* from the jar (includes
org.json.simple.JSONArray) and am getting the type safety warning outlined
above.
Original comment by edm0...@gmail.com
on 29 Apr 2014 at 3:16
GoogleCodeExporter commented
is this fixed ? if yes, then can you please point me to the release version for
same ?
Original comment by jeetendr...@gmail.com
on 29 Jan 2015 at 3:46