Skip to content

Commit 2639d1e

Browse files
committed
Allow Info to be built with null values
Fixes gh-48401
1 parent cee616f commit 2639d1e

File tree

1 file changed

+1
-1
lines changed
  • module/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info

1 file changed

+1
-1
lines changed

module/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/Info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public Builder() {
105105
* @param value the detail value
106106
* @return this {@link Builder} instance
107107
*/
108-
public Builder withDetail(String key, Object value) {
108+
public Builder withDetail(String key, @Nullable Object value) {
109109
this.content.put(key, value);
110110
return this;
111111
}

0 commit comments

Comments
 (0)