-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Use pattern matching instead of type casting #2754
Conversation
junghoon-vans
commented
Oct 23, 2023
- 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).
ac3cad2
to
7e88382
Compare
There was a problem hiding this 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.
src/main/java/org/springframework/data/redis/connection/jedis/JedisConverters.java
Outdated
Show resolved
Hide resolved
src/main/java/org/springframework/data/redis/core/IndexWriter.java
Outdated
Show resolved
Hide resolved
src/main/java/org/springframework/data/redis/core/RedisKeyValueAdapter.java
Outdated
Show resolved
Hide resolved
src/main/java/org/springframework/data/redis/core/convert/DefaultRedisTypeMapper.java
Outdated
Show resolved
Hide resolved
src/main/java/org/springframework/data/redis/core/convert/MappingRedisConverter.java
Outdated
Show resolved
Hide resolved
src/main/java/org/springframework/data/redis/core/script/DefaultScriptExecutor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/springframework/data/redis/core/script/DefaultScriptExecutor.java
Outdated
Show resolved
Hide resolved
src/main/java/org/springframework/data/redis/core/script/ScriptUtils.java
Outdated
Show resolved
Hide resolved
7e88382
to
b870f26
Compare
@jxblum Thank you. I've made all the changes as you suggested. |
b870f26
to
045ee24
Compare
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. |
Tweak naming. Simplify converters by removing unused methods. See #2754
Tweak naming. Simplify converters by removing unused methods. See #2754