nextCleanInternal() — spring-boot Function Reference
Architecture documentation for the nextCleanInternal() function in JSONTokener.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 8fab3eb9_87b1_0170_dc8c_7fff92dfe65b["nextCleanInternal()"] 87e46e8d_3da0_7f48_7371_9287ac91a438["nextValue()"] 87e46e8d_3da0_7f48_7371_9287ac91a438 -->|calls| 8fab3eb9_87b1_0170_dc8c_7fff92dfe65b 893d015b_6dbc_f3e6_7bc9_d3ea1284a481["readObject()"] 893d015b_6dbc_f3e6_7bc9_d3ea1284a481 -->|calls| 8fab3eb9_87b1_0170_dc8c_7fff92dfe65b da568135_bed6_f988_5f6f_c09ed51fd977["readArray()"] da568135_bed6_f988_5f6f_c09ed51fd977 -->|calls| 8fab3eb9_87b1_0170_dc8c_7fff92dfe65b 0e1ead84_8c3d_7844_b071_2353e1c7a27f["nextClean()"] 0e1ead84_8c3d_7844_b071_2353e1c7a27f -->|calls| 8fab3eb9_87b1_0170_dc8c_7fff92dfe65b 2ea9368b_02eb_2d26_b6e7_aaf2153de2a0["syntaxError()"] 8fab3eb9_87b1_0170_dc8c_7fff92dfe65b -->|calls| 2ea9368b_02eb_2d26_b6e7_aaf2153de2a0 f32bd63c_f074_22f0_04a4_b5e7b52f0fc5["skipToEndOfLine()"] 8fab3eb9_87b1_0170_dc8c_7fff92dfe65b -->|calls| f32bd63c_f074_22f0_04a4_b5e7b52f0fc5 style 8fab3eb9_87b1_0170_dc8c_7fff92dfe65b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-metadata/src/json-shade/java/org/springframework/boot/configurationmetadata/json/JSONTokener.java lines 112–161
private int nextCleanInternal() throws JSONException {
while (this.pos < this.in.length()) {
int c = this.in.charAt(this.pos++);
switch (c) {
case '\t', ' ', '\n', '\r':
continue;
case '/':
if (this.pos == this.in.length()) {
return c;
}
char peek = this.in.charAt(this.pos);
switch (peek) {
case '*':
// skip a /* c-style comment */
this.pos++;
int commentEnd = this.in.indexOf("*/", this.pos);
if (commentEnd == -1) {
throw syntaxError("Unterminated comment");
}
this.pos = commentEnd + 2;
continue;
case '/':
// skip a // end-of-line comment
this.pos++;
skipToEndOfLine();
continue;
default:
return c;
}
case '#':
/*
* Skip a # hash end-of-line comment. The JSON RFC doesn't specify
* this behavior, but it's required to parse existing documents. See
* https://b/2571423.
*/
skipToEndOfLine();
continue;
default:
return c;
}
}
return -1;
}
Domain
Subdomains
Calls
- skipToEndOfLine()
- syntaxError()
Called By
- nextClean()
- nextValue()
- readArray()
- readObject()
Source
Frequently Asked Questions
What does nextCleanInternal() do?
nextCleanInternal() is a function in the spring-boot codebase.
What does nextCleanInternal() call?
nextCleanInternal() calls 2 function(s): skipToEndOfLine, syntaxError.
What calls nextCleanInternal()?
nextCleanInternal() is called by 4 function(s): nextClean, nextValue, readArray, readObject.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free