Skip to content

Apply instanceof pattern matching #42049

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

Conversation

abc5259
Copy link
Contributor

@abc5259 abc5259 commented Aug 28, 2024

Refactored the code to use instanceof pattern matching, replacing the older style of instanceof checks and casts. This change improves code readability and maintainability by reducing boilerplate code.

Changes

  • Applied instanceof pattern matching in relevant sections of the code where it was previously missing.
  • Removed unnecessary explicit casting.

@pivotal-cla
Copy link

@abc5259 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@abc5259 Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 28, 2024
@philwebb philwebb added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 28, 2024
@philwebb philwebb added this to the 3.4.x milestone Aug 28, 2024
philwebb pushed a commit that referenced this pull request Sep 2, 2024
@philwebb philwebb closed this in af2474b Sep 2, 2024
@philwebb philwebb modified the milestones: 3.4.x, 3.4.0-M3 Sep 2, 2024
@philwebb
Copy link
Member

philwebb commented Sep 2, 2024

Thanks @abc5259

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.

4 participants