Skip to content

Actuator Info class has inconsistent nullability annotations and cannot be build with null value #48401

@Maks9

Description

@Maks9

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

Info class has @Nullable values:
public @Nullable Object get(String id) {
But its Builder class not:
public Builder withDetail(String key, Object value) {

Now it is impossible to build Info with nullable value argument in kotlin.
Error example: "Require Any, but found Boolean?"

Please make Info and its Builder consistent.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions