Skip to content

Refine startup exception handling implementation - #51144

Closed
vishalsinghji wants to merge 1 commit into
spring-projects:mainfrom
vishalsinghji:cleanup-startup-exception-handling
Closed

Refine startup exception handling implementation#51144
vishalsinghji wants to merge 1 commit into
spring-projects:mainfrom
vishalsinghji:cleanup-startup-exception-handling

Conversation

@vishalsinghji

Copy link
Copy Markdown

This PR performs a few small code cleanups in the startup exception handling code.

  • Replace manual immutable Set creation with Set.of(...).
  • Remove an unreachable null check in SpringApplicationRunListeners.
  • Remove the now-unused ReflectionUtils import.

These changes are purely refactorings and do not change the existing behaviour.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 28, 2026
@snicoll

snicoll commented Jul 30, 2026

Copy link
Copy Markdown
Member

@vishalsinghji thanks for the PR but we prefer doing such refactoring at our own pace. Going from that code to Set.of can be automatically applied by an IDE. Your commit has no sigh-off directive and fails the DCO check. Finally, please do not mix different things in the same PR.

Removing the null check in SpringApplicationRunListeners look sensible so if you want to submit another PR with the DCO check working, I am happ to review that.

@snicoll snicoll closed this Jul 30, 2026
@snicoll snicoll added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: declined A suggestion or change that we don't feel we should currently apply

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants