-
Notifications
You must be signed in to change notification settings - Fork 986
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
Simplify condition to invoke "resolveCodec" method in AnnotationRedisCodecResolver #1149
Comments
Thanks for having a look. The code tries to find whether there is a single key(value) codec and no or up to one value (key) codecs. Simplifying the condition to Something like |
Hi @mp911de thanks for the feedback, what you are saying is if so I can add the test (looks like there is no test for this case) and make sure it passes. Thanks. |
Yes, please. |
@mp911de thanks for the inputs. Added a test commit. Let me know what you think regarding the PR. |
While going through the
AnnotationRedisCodecResolver.java
class, I noticed that this conditionhttps://github.com/lettuce-io/lettuce-core/blob/c98108dd7fbe9bee8702e468efff4b085a976374/src/main/java/io/lettuce/core/dynamic/codec/AnnotationRedisCodecResolver.java#L73-L76 can be improved. I have a refactor in place and I am preparing a PR.
The text was updated successfully, but these errors were encountered: