Skip to content

JSONArray extends ArrayList, should be JSONArray<E> and extend ArrayList<E> #84

Description

@GoogleCodeExporter
As JSONArray extends ArrayList it has all of it's methods, so it should use 
generics. For example simple call to addAll will rise unchecked warning:

JSONArray someData = new JSONArray();
someData.addAll( Arrays.asList( new String[] {"a","b"} ) );

Should be possible:

JSONArray<String> someData = new JSONArray<>();
someData.addAll( Arrays.asList( new String[] {"a","b"} ) ); // no unchecked 
warning

Original issue reported on code.google.com by kajlermo...@gmail.com on 8 Jun 2013 at 1:58

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions