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

parseDeprecation() — spring-boot Function Reference

Architecture documentation for the parseDeprecation() function in JsonReader.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 5 called by 1

Entity Profile

Dependency Diagram

graph TD
  fc6393e9_a413_0a32_e3a3_934e73e90af5["parseDeprecation()"]
  f0a7a167_d269_1fd7_866c_891752cd681d["parseItem()"]
  f0a7a167_d269_1fd7_866c_891752cd681d -->|calls| fc6393e9_a413_0a32_e3a3_934e73e90af5
  b5e03970_dde4_ee52_57c8_c57ee3a0271e["has()"]
  fc6393e9_a413_0a32_e3a3_934e73e90af5 -->|calls| b5e03970_dde4_ee52_57c8_c57ee3a0271e
  7d117140_772f_27b0_8ada_d85e140dfc6f["parseDeprecationLevel()"]
  fc6393e9_a413_0a32_e3a3_934e73e90af5 -->|calls| 7d117140_772f_27b0_8ada_d85e140dfc6f
  bffd4896_fc0a_d9f8_6b96_8fff51fb82d7["getJSONObject()"]
  fc6393e9_a413_0a32_e3a3_934e73e90af5 -->|calls| bffd4896_fc0a_d9f8_6b96_8fff51fb82d7
  6a9880f7_c232_07f2_e6f6_6f055d14f6e4["optString()"]
  fc6393e9_a413_0a32_e3a3_934e73e90af5 -->|calls| 6a9880f7_c232_07f2_e6f6_6f055d14f6e4
  9de448da_cc01_450a_3a8f_cfa176fc2cc1["optBoolean()"]
  fc6393e9_a413_0a32_e3a3_934e73e90af5 -->|calls| 9de448da_cc01_450a_3a8f_cfa176fc2cc1
  style fc6393e9_a413_0a32_e3a3_934e73e90af5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/JsonReader.java lines 161–173

	private Deprecation parseDeprecation(JSONObject object) throws Exception {
		if (object.has("deprecation")) {
			JSONObject deprecationJsonObject = object.getJSONObject("deprecation");
			Deprecation deprecation = new Deprecation();
			deprecation.setLevel(parseDeprecationLevel(deprecationJsonObject.optString("level", null)));
			String reason = deprecationJsonObject.optString("reason", null);
			deprecation.setReason(reason);
			deprecation.setShortReason(this.sentenceExtractor.getFirstSentence(reason));
			deprecation.setReplacement(deprecationJsonObject.optString("replacement", null));
			return deprecation;
		}
		return object.optBoolean("deprecated") ? new Deprecation() : null;
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does parseDeprecation() do?
parseDeprecation() is a function in the spring-boot codebase.
What does parseDeprecation() call?
parseDeprecation() calls 5 function(s): getJSONObject, has, optBoolean, optString, parseDeprecationLevel.
What calls parseDeprecation()?
parseDeprecation() is called by 1 function(s): parseItem.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free