Skip to content

Commit

Permalink
Adds a new method toIdentityString() that returns the identifier in…
Browse files Browse the repository at this point in the history
…fo for the connection
  • Loading branch information
jjz921024 committed Aug 12, 2024
1 parent 219224d commit b13f708
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/redis/clients/jedis/Connection.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ public Connection(final JedisSocketFactory socketFactory, JedisClientConfig clie
initializeFromClientConfig(clientConfig);
}

@Override
public String toString() {
public String toIdentityString() {
if (strValActive == broken && strVal != null) {
return strVal;
}
Expand Down

0 comments on commit b13f708

Please sign in to comment.