mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
fix(#887): corrected small typo
This commit is contained in:
parent
fe597d296e
commit
ce074e9f9a
@ -107,7 +107,7 @@ public class JSONArray implements Iterable<Object> {
|
|||||||
}
|
}
|
||||||
if (nextChar != ']') {
|
if (nextChar != ']') {
|
||||||
x.back();
|
x.back();
|
||||||
for (;;) {
|
for (; ; ) {
|
||||||
if (x.nextClean() == ',') {
|
if (x.nextClean() == ',') {
|
||||||
x.back();
|
x.back();
|
||||||
this.myArrayList.add(JSONObject.NULL);
|
this.myArrayList.add(JSONObject.NULL);
|
||||||
@ -158,9 +158,9 @@ public class JSONArray implements Iterable<Object> {
|
|||||||
* @throws JSONException if input is not compliant with strict mode guidelines;
|
* @throws JSONException if input is not compliant with strict mode guidelines;
|
||||||
*/
|
*/
|
||||||
private void validateInput(JSONTokener x) {
|
private void validateInput(JSONTokener x) {
|
||||||
char nextChar = x.getPrevious();
|
char cursor = x.getPrevious();
|
||||||
|
|
||||||
boolean isEndOfArray = nextChar == ']';
|
boolean isEndOfArray = cursor == ']';
|
||||||
boolean nextCharacterIsNotEoF = x.nextClean() != 0;
|
boolean nextCharacterIsNotEoF = x.nextClean() != 0;
|
||||||
|
|
||||||
if (isEndOfArray && nextCharacterIsNotEoF) {
|
if (isEndOfArray && nextCharacterIsNotEoF) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user