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

Refactor type checks and improve code readability #3580

Closed
wants to merge 2 commits into from

Conversation

Seol-JY
Copy link
Contributor

@Seol-JY Seol-JY commented Aug 14, 2024

  • Replace isInstance() method calls with instanceof operator for improved readability
  • Remove unnecessary type checks and castings in postProcessBeanFactory method

Some changes to instanceof refactoring are already covered here #3465

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 14, 2024
@mp911de mp911de added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 14, 2024
@mp911de mp911de closed this in f7aed2a Aug 14, 2024
mp911de added a commit that referenced this pull request Aug 14, 2024
Consistently convert Iterable to Collection for identifier parameters.

See #3580
mp911de pushed a commit that referenced this pull request Aug 14, 2024
Replace Collection.class.isInstance with instanceof for type checking. Remove unnecessary type check for ConfigurableListableBeanFactory in postProcessBeanFactory method.

Closes #3580
mp911de added a commit that referenced this pull request Aug 14, 2024
Consistently convert Iterable to Collection for identifier parameters.

See #3580
@mp911de mp911de added this to the 3.3.3 (2024.0.3) milestone Aug 14, 2024
@mp911de
Copy link
Member

mp911de commented Aug 14, 2024

Thank you for your contribution. That's merged, polished, and backported now.

@mp911de mp911de self-assigned this Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants