mirror of
https://github.com/alibaba/fastjson.git
synced 2026-10-24 02:18:47 +08:00
Merge pull request #3737 from clark-liu/master
Fix typo valiateResult -> validateResult
This commit is contained in:
@@ -14,7 +14,7 @@ public abstract class JSONValidator implements Cloneable, Closeable {
|
||||
protected int pos = -1;
|
||||
protected char ch;
|
||||
protected Type type;
|
||||
private Boolean valiateResult;
|
||||
private Boolean validateResult;
|
||||
|
||||
protected int count = 0;
|
||||
protected boolean supportMultiValue = false;
|
||||
@@ -55,20 +55,20 @@ public abstract class JSONValidator implements Cloneable, Closeable {
|
||||
abstract void next();
|
||||
|
||||
public boolean validate() {
|
||||
if (valiateResult != null) {
|
||||
return valiateResult;
|
||||
if (validateResult != null) {
|
||||
return validateResult;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
if (!any()) {
|
||||
valiateResult = false;
|
||||
validateResult = false;
|
||||
return false;
|
||||
}
|
||||
skipWhiteSpace();
|
||||
|
||||
count++;
|
||||
if (eof) {
|
||||
valiateResult = true;
|
||||
validateResult = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -79,12 +79,12 @@ public abstract class JSONValidator implements Cloneable, Closeable {
|
||||
}
|
||||
continue;
|
||||
} else {
|
||||
valiateResult = false;
|
||||
validateResult = false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
valiateResult = true;
|
||||
validateResult = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -609,7 +609,7 @@ public abstract class JSONValidator implements Cloneable, Closeable {
|
||||
|
||||
public void close() throws IOException {
|
||||
bufLocal.set(buf);
|
||||
r.close();;
|
||||
r.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user