close() — spring-boot Function Reference
Architecture documentation for the close() function in JSONStringer.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 6eb655c8_a943_e5f2_3b38_9fb1298c5acf["close()"] 4f2d2f13_d1d2_bad1_42d3_e4c197271920["endArray()"] 4f2d2f13_d1d2_bad1_42d3_e4c197271920 -->|calls| 6eb655c8_a943_e5f2_3b38_9fb1298c5acf aa3c6f66_9698_d99b_1937_1b6d9933bf9b["endObject()"] aa3c6f66_9698_d99b_1937_1b6d9933bf9b -->|calls| 6eb655c8_a943_e5f2_3b38_9fb1298c5acf fdc6dc40_dd98_df76_a7ed_999403394249["peek()"] 6eb655c8_a943_e5f2_3b38_9fb1298c5acf -->|calls| fdc6dc40_dd98_df76_a7ed_999403394249 cce3afba_7ed2_f723_6502_829a455c1594["newline()"] 6eb655c8_a943_e5f2_3b38_9fb1298c5acf -->|calls| cce3afba_7ed2_f723_6502_829a455c1594 style 6eb655c8_a943_e5f2_3b38_9fb1298c5acf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
configuration-metadata/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONStringer.java lines 194–206
JSONStringer close(Scope empty, Scope nonempty, String closeBracket) throws JSONException {
Scope context = peek();
if (context != nonempty && context != empty) {
throw new JSONException("Nesting problem");
}
this.stack.remove(this.stack.size() - 1);
if (context == nonempty) {
newline();
}
this.out.append(closeBracket);
return this;
}
Domain
Subdomains
Called By
- endArray()
- endObject()
Source
Frequently Asked Questions
What does close() do?
close() is a function in the spring-boot codebase.
What does close() call?
close() calls 2 function(s): newline, peek.
What calls close()?
close() is called by 2 function(s): endArray, endObject.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free