Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSONObject produces warning in code #93

Open
GoogleCodeExporter opened this issue Dec 24, 2015 · 6 comments
Open

JSONObject produces warning in code #93

GoogleCodeExporter opened this issue Dec 24, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 16 Dec 2013 at 5:15

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 19 Dec 2013 at 3:26

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Please include JSONArray, this would fix the bulk of them.

Original comment by [email protected] on 11 Mar 2014 at 1:28

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 29 Apr 2014 at 3:16

@GoogleCodeExporter
Copy link
Author

is this fixed ? if yes, then can you please point me to the release version for 
same ?

Original comment by [email protected] on 29 Jan 2015 at 3:46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant