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

majorVersionFor() — spring-boot Function Reference

Architecture documentation for the majorVersionFor() function in JavaCompilerPluginConfiguration.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  b4994b0f_d1bf_57dd_8d2f_b6ea99d18458["majorVersionFor()"]
  57740982_7f99_bb05_75e1_cfffc9418f9f["getSourceMajorVersion()"]
  57740982_7f99_bb05_75e1_cfffc9418f9f -->|calls| b4994b0f_d1bf_57dd_8d2f_b6ea99d18458
  41574849_8554_f362_53ca_fe75a679f6b6["getTargetMajorVersion()"]
  41574849_8554_f362_53ca_fe75a679f6b6 -->|calls| b4994b0f_d1bf_57dd_8d2f_b6ea99d18458
  0de27adc_519c_5784_2c7b_6b2cb9249da9["getReleaseVersion()"]
  0de27adc_519c_5784_2c7b_6b2cb9249da9 -->|calls| b4994b0f_d1bf_57dd_8d2f_b6ea99d18458
  style b4994b0f_d1bf_57dd_8d2f_b6ea99d18458 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/JavaCompilerPluginConfiguration.java lines 103–109

	@Contract("!null -> !null")
	private @Nullable String majorVersionFor(@Nullable String version) {
		if (version != null && version.startsWith("1.")) {
			return version.substring("1.".length());
		}
		return version;
	}

Domain

Subdomains

Frequently Asked Questions

What does majorVersionFor() do?
majorVersionFor() is a function in the spring-boot codebase.
What calls majorVersionFor()?
majorVersionFor() is called by 3 function(s): getReleaseVersion, getSourceMajorVersion, getTargetMajorVersion.

Analyze Your Own Codebase

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

Try Supermodel Free