whenNotNull() — spring-boot Function Reference
Architecture documentation for the whenNotNull() function in JsonWriterTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 6fa7b03c_cdf4_1fed_b928_c9af7a88df4d["whenNotNull()"] c663741f_9cda_5703_6c7b_c351372eeef5["whenNotNullExtracted()"] c663741f_9cda_5703_6c7b_c351372eeef5 -->|calls| 6fa7b03c_cdf4_1fed_b928_c9af7a88df4d 0d94726e_741b_9208_9d8c_ca4cd0f4cf12["of()"] 6fa7b03c_cdf4_1fed_b928_c9af7a88df4d -->|calls| 0d94726e_741b_9208_9d8c_ca4cd0f4cf12 d61ef6a0_daf3_14b5_0e3c_0e18dc46fd10["quoted()"] 6fa7b03c_cdf4_1fed_b928_c9af7a88df4d -->|calls| d61ef6a0_daf3_14b5_0e3c_0e18dc46fd10 style 6fa7b03c_cdf4_1fed_b928_c9af7a88df4d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/json/JsonWriterTests.java lines 244–249
@Test
void whenNotNull() {
JsonWriter<String> writer = JsonWriter.of((members) -> members.add().whenNotNull());
assertThat(writer.writeToString("test")).isEqualTo(quoted("test"));
assertThat(writer.writeToString(null)).isEmpty();
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does whenNotNull() do?
whenNotNull() is a function in the spring-boot codebase.
What does whenNotNull() call?
whenNotNull() calls 2 function(s): of, quoted.
What calls whenNotNull()?
whenNotNull() is called by 1 function(s): whenNotNullExtracted.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free