Skip to content

Development for stleary#516 completed with rebased repository - #1

Merged
viveksacademia4git merged 1 commit into
masterfrom
i516-JSONArray-ConstructParam-InitCapacity
Jun 3, 2020
Merged

viveksacademia4git merged 1 commit into
masterfrom
i516-JSONArray-ConstructParam-InitCapacity

Conversation

@viveksacademia4git

Copy link
Copy Markdown
Owner
  • Introduced JSONObject(int) constructor.

    • int > Initial capacity of the underlying data structure
  • Test for new introduced JSONArray(int) constructor.

    1. Checked with input parameter: 0
    2. Checked with input parameter: positive number
    3. Checked with positive number input parameter and compared length
    4. If input parameter is negative number JSONException is thrown:
      JSONArray initial capacity cannot be negative.

- Introduced JSONObject(int) constructor.
   - int > Initial capacity of the underlying data structure

- Test for new introduced JSONArray(int) constructor.
   1. Checked with input parameter: 0
   2. Checked with input parameter: positive number
   3. Checked with positive number input parameter and compared length
   4. If input parameter is negative number JSONException is thrown:
         JSONArray initial capacity cannot be negative.
@viveksacademia4git
viveksacademia4git merged commit 8cc6075 into master Jun 3, 2020
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.

2 participants