pvdung / json-simple

Automatically exported from code.google.com/p/json-simple
Apache License 2.0
0 stars 0 forks source link

JSONObject produces warning in code #93

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 9 years ago

Original comment by fangyid...@gmail.com on 19 Dec 2013 at 3:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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 9 years ago
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