Skip to content

[Feature]: DataFixerEndpoint.domainDetails() returns null for 404 — implicit behavior #221

@Splatcrafter

Description

@Splatcrafter

AI REVIEWED

Module: spring-boot-starter
File: spring/actuator/DataFixerEndpoint.java (~line 244-245)
Severity: Low

Problem / Motivation

Returning null from a @ReadOperation with @Selector to trigger HTTP 404 is Spring Boot convention but relies on implicit behavior. Not immediately obvious to developers unfamiliar with this pattern.

Proposed Solution

Add a comment explaining the convention:

// Returning null from @ReadOperation with @Selector produces HTTP 404 (Spring Boot convention)
return null;

Or document in class-level Javadoc.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions