Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the BeanDefinitionNames constant interface to a final class Constant class that cannot be inherited. #3215

Closed
wants to merge 1 commit into from

Conversation

ch4570
Copy link

@ch4570 ch4570 commented Oct 29, 2023

The BeanDefinitionNames interface is a constant interface, so there is a risk of namespace pollution in other classes if they accidentally implement it. To prevent the risk of accidental implementation, we have transformed the constant interface into a final class with three constants. Additionally, we have updated the AuditingBeanDefinitionParser class, which currently lacks static imports, to include them.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 29, 2023
@mp911de
Copy link
Member

mp911de commented Nov 3, 2023

BeanDefinitionNames is a package-private interface by design so there's not much risk to implement that interface for outside users.

@mp911de mp911de closed this Nov 3, 2023
@mp911de mp911de 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 Nov 3, 2023
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