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

hash() — spring-boot Function Reference

Architecture documentation for the hash() function in StandardStackTracePrinter.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  b38f02ce_76a8_9894_76e1_8a5c4cb23cd8["hash()"]
  86e3e48e_de31_d4fa_44e0_ba7302a6dbcd["hashPrefix()"]
  86e3e48e_de31_d4fa_44e0_ba7302a6dbcd -->|calls| b38f02ce_76a8_9894_76e1_8a5c4cb23cd8
  49053781_33e3_f6be_f521_e18996baee96["cause()"]
  b38f02ce_76a8_9894_76e1_8a5c4cb23cd8 -->|calls| 49053781_33e3_f6be_f521_e18996baee96
  42a1e0ba_1f33_18e2_8339_c3a381c06c89["throwable()"]
  b38f02ce_76a8_9894_76e1_8a5c4cb23cd8 -->|calls| 42a1e0ba_1f33_18e2_8339_c3a381c06c89
  c5fc5255_1ce1_7554_b051_a2fca9ae48e8["frames()"]
  b38f02ce_76a8_9894_76e1_8a5c4cb23cd8 -->|calls| c5fc5255_1ce1_7554_b051_a2fca9ae48e8
  style b38f02ce_76a8_9894_76e1_8a5c4cb23cd8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/logging/StandardStackTracePrinter.java lines 465–482

		private int hash(HashSet<Throwable> seen, ToIntFunction<StackTraceElement> frameHasher) {
			if (this.hash != null) {
				return this.hash;
			}
			int hash = 0;
			StackTrace cause = cause();
			if (cause != null && seen.add(cause.throwable())) {
				hash = cause.hash(seen, frameHasher);
			}
			hash = 31 * hash + throwable().getClass().getName().hashCode();
			if (frames() != null) {
				for (StackTraceElement frame : frames()) {
					hash = 31 * hash + frameHasher.applyAsInt(frame);
				}
			}
			this.hash = hash;
			return hash;
		}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does hash() do?
hash() is a function in the spring-boot codebase.
What does hash() call?
hash() calls 3 function(s): cause, frames, throwable.
What calls hash()?
hash() is called by 1 function(s): hashPrefix.

Analyze Your Own Codebase

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

Try Supermodel Free