Skip to content

Commit 1573104

Browse files
committed
Allow Info to be built with null map values
Fixes gh-48401
1 parent 14a67f7 commit 1573104

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
@@ -116,7 +116,7 @@ public Builder withDetail(String key, @Nullable Object value) {
116116
* @return this {@link Builder} instance
117117
* @see #withDetail(String, Object)
118118
*/
119-
public Builder withDetails(Map<String, Object> details) {
119+
public Builder withDetails(Map<String, @Nullable ? extends Object> details) {
120120
this.content.putAll(details);
121121
return this;
122122
}

0 commit comments

Comments
 (0)