Skip to content

Use pattern matching instead of type casting #2754

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

junghoon-vans
Copy link
Contributor

  • You have read the Spring Data contribution guidelines.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 23, 2023
@junghoon-vans junghoon-vans force-pushed the use-pattern-matching-instead-of-type-casting branch 3 times, most recently from ac3cad2 to 7e88382 Compare October 23, 2023 04:30
@mp911de mp911de self-assigned this Oct 23, 2023
@mp911de mp911de added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 23, 2023
Copy link
Contributor

@jxblum jxblum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these changes look really good. Thank you!

Let's see what @mp911de thinks.

@junghoon-vans junghoon-vans force-pushed the use-pattern-matching-instead-of-type-casting branch from 7e88382 to b870f26 Compare October 25, 2023 01:07
@junghoon-vans
Copy link
Contributor Author

@jxblum Thank you. I've made all the changes as you suggested.

@junghoon-vans junghoon-vans force-pushed the use-pattern-matching-instead-of-type-casting branch from b870f26 to 045ee24 Compare October 26, 2023 09:01
@mp911de mp911de added this to the 3.1.6 (2023.0.6) milestone Oct 27, 2023
@mp911de
Copy link
Member

mp911de commented Oct 27, 2023

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

I refined some of the names to reduce names to the significant part and to de-duplicate names as we don't need to repeat ourselves within a particular context.

@mp911de mp911de closed this in 85e9ae5 Oct 27, 2023
mp911de added a commit that referenced this pull request Oct 27, 2023
Tweak naming. Simplify converters by removing unused methods.

See #2754
mp911de pushed a commit that referenced this pull request Oct 27, 2023
mp911de added a commit that referenced this pull request Oct 27, 2023
Tweak naming. Simplify converters by removing unused methods.

See #2754
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