1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

whitespace

This commit is contained in:
Douglas Crockford 2012-11-13 14:39:02 -08:00
parent 216a4299f3
commit 96fceff148

View file

@ -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;