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
  4a327d15_c9d7_fbe1_89b7_43cf755708ae["nextCleanInternal()"]
  9d280377_39f9_945d_4b0c_8be3562c4bd5["nextValue()"]
  9d280377_39f9_945d_4b0c_8be3562c4bd5 -->|calls| 4a327d15_c9d7_fbe1_89b7_43cf755708ae
  bfecd7ed_4ec2_1eca_3ac0_a644aa4d808b["readObject()"]
  bfecd7ed_4ec2_1eca_3ac0_a644aa4d808b -->|calls| 4a327d15_c9d7_fbe1_89b7_43cf755708ae
  0ed2fa59_d163_c92c_e366_27997083938e["readArray()"]
  0ed2fa59_d163_c92c_e366_27997083938e -->|calls| 4a327d15_c9d7_fbe1_89b7_43cf755708ae
  91f48290_c50f_71b5_9203_d9a5f592fa87["nextClean()"]
  91f48290_c50f_71b5_9203_d9a5f592fa87 -->|calls| 4a327d15_c9d7_fbe1_89b7_43cf755708ae
  5d37c1ba_6649_7ef7_7cb2_9bcac45ebb3e["syntaxError()"]
  4a327d15_c9d7_fbe1_89b7_43cf755708ae -->|calls| 5d37c1ba_6649_7ef7_7cb2_9bcac45ebb3e
  c1c4913f_1beb_24b1_dcf2_2e1fe5bec1fd["skipToEndOfLine()"]
  4a327d15_c9d7_fbe1_89b7_43cf755708ae -->|calls| c1c4913f_1beb_24b1_dcf2_2e1fe5bec1fd
  style 4a327d15_c9d7_fbe1_89b7_43cf755708ae fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/json-shade/java/org/springframework/boot/cli/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