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
Original issue reported on code.google.com by
kajlermo...@gmail.com
on 8 Jun 2013 at 1:58