1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 16:00:51 -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 * The XMLTokener extends the JSONTokener to provide additional methods
* for the parsing of XML texts. * for the parsing of XML texts.
* @author JSON.org * @author JSON.org
* @version 2010-12-24 * @version 2012-11-13
*/ */
public class XMLTokener extends JSONTokener { public class XMLTokener extends JSONTokener {
@ -319,15 +319,15 @@ public class XMLTokener extends JSONTokener {
} }
circle[i] = c; circle[i] = c;
} }
/*
* We will loop, possibly for all of the remaining characters. /* We will loop, possibly for all of the remaining characters. */
*/
for (;;) { for (;;) {
j = offset; j = offset;
b = true; 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) { for (i = 0; i < length; i += 1) {
if (circle[j] != to.charAt(i)) { if (circle[j] != to.charAt(i)) {
b = false; b = false;
@ -338,15 +338,15 @@ public class XMLTokener extends JSONTokener {
j -= length; 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) { if (b) {
return true; 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(); c = next();
if (c == 0) { if (c == 0) {
return false; return false;