From cd7fdb2df9e2343387ef73256d0e82e7e503d32a Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Thu, 15 Aug 2024 12:28:40 +0600 Subject: [PATCH] format Connection --- src/main/java/redis/clients/jedis/Connection.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/redis/clients/jedis/Connection.java b/src/main/java/redis/clients/jedis/Connection.java index 3fe04195fb..df59241c34 100644 --- a/src/main/java/redis/clients/jedis/Connection.java +++ b/src/main/java/redis/clients/jedis/Connection.java @@ -102,7 +102,7 @@ public String toIdentityString() { .append(id) .append(", L:") .append(localAddr) - .append(broken? " ! " : " - ") + .append(broken ? " ! " : " - ") .append("R:") .append(remoteAddr) .append(']'); @@ -455,7 +455,7 @@ public List getMany(final int count) { /** * Check if the client name libname, libver, characters are legal - * + * * @param info the name * @return Returns true if legal, false throws exception * @throws JedisException if characters illegal @@ -499,8 +499,9 @@ protected void initializeFromClientConfig(final JedisClientConfig config) { } ClientSetInfoConfig setInfoConfig = config.getClientSetInfoConfig(); - if (setInfoConfig == null) + if (setInfoConfig == null) { setInfoConfig = ClientSetInfoConfig.DEFAULT; + } if (!setInfoConfig.isDisabled()) { String libName = JedisMetaInfo.getArtifactId();