You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 [email protected] on 8 Jun 2013 at 1:58
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 8 Jun 2013 at 1:58The text was updated successfully, but these errors were encountered: