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

Refine JedisConnectionFactory #2745

Open
jxblum opened this issue Oct 18, 2023 · 0 comments
Open

Refine JedisConnectionFactory #2745

jxblum opened this issue Oct 18, 2023 · 0 comments
Assignees
Labels
in: jedis Jedis driver type: task A general task

Comments

@jxblum
Copy link
Contributor

jxblum commented Oct 18, 2023

General code refactoring and cleanup task triggered while considering the fallout and possible workaround for #2738.

Introduces private (static) methods (and/or local variables) to simplify and remove duplicate logic while simultaneously removing broken line breaks affecting readability and understanding.

NOTE: line breaks are also being affected by our excessive indentation.

Simplifies assertions by making consistent use of Spring Frameworks Assert facility rather than unnecessary conditional blocks.

Refers to state variables using getter (rather than direct variable reference) where applicable helping to improve extensibility.

Reorganizes state variables in both JedisConnectionFactory as well as MutableJedisClientConfiguration by type in alphabetical order.

Organizes code according to Spring Data source code guidelines (e.g. private methods towards the end of classes).

Deprecates createTopologyProvider(..) in favor of createClusterTopologyProvider(..) for consistent and clarified naming.

Adds additional and judicious white space to improve readability.

jxblum added a commit to jxblum/spring-data-redis that referenced this issue Oct 18, 2023
Introduces private (static) methods (and/or local variables) to simplify and remove duplicate logic while simultaneously removing broken line breaks affecting readability and understanding along with cleaning up some compiler warnings.

Simplifies assertions by making consistent use of Spring Frameworks Assert facility rather than unnecessary conditional blocks.

Refers to state variables using getter (rather than direct variable reference) where applicable helping to improve extensibility.

Deprecates createTopologyProvider(..) in favor of createClusterTopologyProvider(..) for consistent and clarified naming.

Closes spring-projects#2745
@jxblum jxblum added type: task A general task in: jedis Jedis driver labels Oct 18, 2023
jxblum added a commit to jxblum/spring-data-redis that referenced this issue Oct 18, 2023
Introduces private (static) methods (and/or local variables) to simplify and remove duplicate logic while simultaneously removing broken line breaks affecting readability and understanding along with cleaning up some compiler warnings.

Simplifies assertions by making consistent use of Spring Frameworks Assert facility rather than unnecessary conditional blocks.

Refers to state variables using getter (rather than direct variable reference) where applicable helping to improve extensibility.

Deprecates createTopologyProvider(..) in favor of createClusterTopologyProvider(..) for consistent and clarified naming.

Closes spring-projects#2745
jxblum added a commit to jxblum/spring-data-redis that referenced this issue Oct 18, 2023
Introduces private [static] methods (and/or local variables as needed) to simplify and remove duplicate logic while simultaneously removing broken line breaks affecting readability and understanding.

Simplifies assertions by making consistent use of Spring Frameworks Assert facility rather than unnecessary conditional blocks.

Refers to state variables using getter (rather than direct variable reference) where applicable helping to improve extensibility.

Deprecates createTopologyProvider(..) in favor of createClusterTopologyProvider(..) for consistent and clarified naming.

Cleans up compiler warnings.

Closes spring-projects#2745
@jxblum jxblum changed the title Refine JedisConnectionFactory Refine JedisConnectionFactory Oct 18, 2023
@jxblum jxblum self-assigned this Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: jedis Jedis driver type: task A general task
Projects
None yet
Development

No branches or pull requests

1 participant