Skip to content

Conversation

@stleary
Copy link
Owner

@stleary stleary commented Oct 16, 2015

Not proposing this for the #153 bug fix at this time. Just wanted to open it for comments and be able to reference it from other branches. This branch changes the ctors and some put() methods to support JSONObject(Map<String, ?>) and JSONArray(Collection<?>) in the style of #153, but makes no other changes. In order complete the unit tests, JSONObjectTest instances of Map<?,?> have to be changed to Map<String, ?>

@stleary
Copy link
Owner Author

stleary commented Oct 22, 2015

If you are referring to the JSONObject(Map<String,?>) ctor, agreed, it was an unnecessary change.

Having polled my Java gurus, the consensus is that, if a change should be made at all, Map<?,?>, Collection<?> is the best solution for #153.

@stleary
Copy link
Owner Author

stleary commented Oct 29, 2015

Going with the original proposal.

@stleary stleary closed this Oct 29, 2015
@stleary stleary deleted the limited-ctor-change-for-153 branch October 29, 2015 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants