Skip to content

chore: remove unused TestPortConfig properties bean - #217

Open
detail-app[bot] wants to merge 1 commit into
devfrom
detail/dead-code/chore-remove-unused-testportconfig-properties-bean-2a00e2
Open

detail-app[bot] wants to merge 1 commit into
devfrom
detail/dead-code/chore-remove-unused-testportconfig-properties-bean-2a00e2

Conversation

@detail-app

@detail-app detail-app Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Remove the Spring @Component/@ConfigurationProperties bean TestPortConfig (prefix app.ports), which had no production consumer. No file imported, injected, autowired, or called TestPortConfig or its accessors (isKillOnConflict, setKillOnConflict, getRange, setRange); Spring's instantiation and property binding were the only callers, a self-feeding cycle rather than a real use site. The killOnConflict feature this bean represented was removed from PortInitializer in Jan 2026 (PortInitializer reads app.ports.* directly from the Environment, bypassing the bean, and no longer reads killOnConflict at all). The two matching app.ports.* lines in src/test/resources/application-test.properties were left untouched as sub-10-line fragments that are harmless once unbound.

History


Dead Code PRs can be configured here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant