Skip to content

IndexOutOfBoundsException, JSONArray#remove(int) - #96

Closed
kuporific wants to merge 1 commit into
stleary:masterfrom
kuporific:review
Closed

IndexOutOfBoundsException, JSONArray#remove(int)#96
kuporific wants to merge 1 commit into
stleary:masterfrom
kuporific:review

Conversation

@kuporific

Copy link
Copy Markdown

List#remove(int) throws an IndexOutOfBoundsException when index < 0 or index >= list size. The JSONArray#remove(int) method was not making the proper check on the index value. Method now behaves as documented.

List#remove(int) throws an IndexOutOfBoundsException when index is
less than 0 or greater than or equal to the length of the list. The
JSONArray#remove(int) method was not making the proper check on the
index value.
@douglascrockford

Copy link
Copy Markdown
Contributor

Thanks.

BGehrels pushed a commit to BGehrels/JSON-java that referenced this pull request Apr 29, 2020
improve the confused assert message
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