ereinecke / json-simple

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

public class JSONArray extends ArrayList implements Collection, JSONAware, JSONStreamAware #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The JSONArray extends ArrayList and thus already implements Collection as it is 
implemented in ArrayList.

I think the class declaration should omit Collection:
public class JSONArray extends ArrayList implements JSONAware, JSONStreamAware

Am I right?
Bye
Piero

Original issue reported on code.google.com by ottu...@gmail.com on 2 Sep 2011 at 10:11

GoogleCodeExporter commented 8 years ago
The purpose is to make it a java.util.List explicitly.

Original comment by fangyid...@gmail.com on 29 Nov 2011 at 3:08