mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-02 19:15:27 -04:00
whitespace
This commit is contained in:
parent
216a4299f3
commit
96fceff148
@ -28,7 +28,7 @@ SOFTWARE.
|
||||
* The XMLTokener extends the JSONTokener to provide additional methods
|
||||
* for the parsing of XML texts.
|
||||
* @author JSON.org
|
||||
* @version 2010-12-24
|
||||
* @version 2012-11-13
|
||||
*/
|
||||
public class XMLTokener extends JSONTokener {
|
||||
|
||||
@ -319,15 +319,15 @@ public class XMLTokener extends JSONTokener {
|
||||
}
|
||||
circle[i] = c;
|
||||
}
|
||||
/*
|
||||
* We will loop, possibly for all of the remaining characters.
|
||||
*/
|
||||
|
||||
/* We will loop, possibly for all of the remaining characters. */
|
||||
|
||||
for (;;) {
|
||||
j = offset;
|
||||
b = true;
|
||||
/*
|
||||
* Compare the circle buffer with the to string.
|
||||
*/
|
||||
|
||||
/* Compare the circle buffer with the to string. */
|
||||
|
||||
for (i = 0; i < length; i += 1) {
|
||||
if (circle[j] != to.charAt(i)) {
|
||||
b = false;
|
||||
@ -338,15 +338,15 @@ public class XMLTokener extends JSONTokener {
|
||||
j -= length;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* If we exit the loop with b intact, then victory is ours.
|
||||
*/
|
||||
|
||||
/* If we exit the loop with b intact, then victory is ours. */
|
||||
|
||||
if (b) {
|
||||
return true;
|
||||
}
|
||||
/*
|
||||
* Get the next character. If there isn't one, then defeat is ours.
|
||||
*/
|
||||
|
||||
/* Get the next character. If there isn't one, then defeat is ours. */
|
||||
|
||||
c = next();
|
||||
if (c == 0) {
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user