Home / Class/ SystemPropertyFormatter Class — spring-boot Architecture

SystemPropertyFormatter Class — spring-boot Architecture

Architecture documentation for the SystemPropertyFormatter class in SystemPropertyFormatter.java from the spring-boot codebase.

Entity Profile

Source Code

build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/SystemPropertyFormatter.java lines 27–42

final class SystemPropertyFormatter {

	private SystemPropertyFormatter() {
	}

	static String format(@Nullable String key, @Nullable String value) {
		if (key == null) {
			return "";
		}
		if (value == null || value.isEmpty()) {
			return String.format("-D%s", key);
		}
		return String.format("-D%s=%s", key, value);
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free