Home / Function/ nextCleanInternal() — spring-boot Function Reference

nextCleanInternal() — spring-boot Function Reference

Architecture documentation for the nextCleanInternal() function in JSONTokener.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 2 called by 4

Entity Profile

Dependency Diagram

graph TD
  ba2b4b5f_53d3_e7ca_09c7_5b89f2ff6a13["nextCleanInternal()"]
  e00d01c8_1ae8_f530_0266_0863c164a433["nextValue()"]
  e00d01c8_1ae8_f530_0266_0863c164a433 -->|calls| ba2b4b5f_53d3_e7ca_09c7_5b89f2ff6a13
  222f475a_e60c_57a7_5fec_ce6fe2f5deda["readObject()"]
  222f475a_e60c_57a7_5fec_ce6fe2f5deda -->|calls| ba2b4b5f_53d3_e7ca_09c7_5b89f2ff6a13
  e8449afe_d093_aefb_5ba5_e395f33c931b["readArray()"]
  e8449afe_d093_aefb_5ba5_e395f33c931b -->|calls| ba2b4b5f_53d3_e7ca_09c7_5b89f2ff6a13
  21c0c3da_addb_c699_7f87_9a04f0fe5c8d["nextClean()"]
  21c0c3da_addb_c699_7f87_9a04f0fe5c8d -->|calls| ba2b4b5f_53d3_e7ca_09c7_5b89f2ff6a13
  424682c6_51c3_cdab_a5b5_25e0f9a6d8eb["syntaxError()"]
  ba2b4b5f_53d3_e7ca_09c7_5b89f2ff6a13 -->|calls| 424682c6_51c3_cdab_a5b5_25e0f9a6d8eb
  551b0879_7fea_c60a_25ce_36e0c4ed13d0["skipToEndOfLine()"]
  ba2b4b5f_53d3_e7ca_09c7_5b89f2ff6a13 -->|calls| 551b0879_7fea_c60a_25ce_36e0c4ed13d0
  style ba2b4b5f_53d3_e7ca_09c7_5b89f2ff6a13 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/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

Called By

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