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
Some code cleanups #1888
Some code cleanups #1888
Conversation
gkorland
commented
Nov 5, 2018
- diamonds operator
- missing final
- index of with '' when possible
1. diamonds operator 2. missing final 3. index of with '' when possible
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.
Personally, I prefer nested enums to be declared static for the sake of readability. Let's see what @marcosnils says.
@sazzad16 but there is no need every nested enum is static |
# Conflicts: # src/main/java/redis/clients/jedis/util/JedisByteHashMap.java
@sazzad16 any more comments but the |
@@ -20,7 +20,7 @@ | |||
public Pool() { | |||
} | |||
|
|||
public Pool(final GenericObjectPoolConfig poolConfig, PooledObjectFactory<T> factory) { | |||
public Pool(final GenericObjectPoolConfig<T> poolConfig, PooledObjectFactory<T> factory) { |
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.
Won't this create backward compatibility issue?
@@ -33,7 +33,7 @@ public boolean isClosed() { | |||
return this.internalPool.isClosed(); | |||
} | |||
|
|||
public void initPool(final GenericObjectPoolConfig poolConfig, PooledObjectFactory<T> factory) { | |||
public void initPool(final GenericObjectPoolConfig<T> poolConfig, PooledObjectFactory<T> factory) { |
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.
and this?
@gkorland Except |
I guess we can close this PR since we just merged #2100 |
I'll submit a new PR |
okay |