mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-08 19:44:29 +08:00
fix(#887): corrected small typo
This commit is contained in:
@@ -158,9 +158,9 @@ public class JSONArray implements Iterable<Object> {
|
||||
* @throws JSONException if input is not compliant with strict mode guidelines;
|
||||
*/
|
||||
private void validateInput(JSONTokener x) {
|
||||
char nextChar = x.getPrevious();
|
||||
char cursor = x.getPrevious();
|
||||
|
||||
boolean isEndOfArray = nextChar == ']';
|
||||
boolean isEndOfArray = cursor == ']';
|
||||
boolean nextCharacterIsNotEoF = x.nextClean() != 0;
|
||||
|
||||
if (isEndOfArray && nextCharacterIsNotEoF) {
|
||||
|
Reference in New Issue
Block a user