diff --git a/src/main/java/net/snowflake/client/core/HttpUtil.java b/src/main/java/net/snowflake/client/core/HttpUtil.java index 537c692c3..fb3cf7552 100644 --- a/src/main/java/net/snowflake/client/core/HttpUtil.java +++ b/src/main/java/net/snowflake/client/core/HttpUtil.java @@ -225,13 +225,17 @@ public static void setSessionlessProxyForAzure( */ public static void setProxyForAzure(HttpClientSettingsKey key, OperationContext opContext) { if (key != null && key.usesProxy()) { - Proxy azProxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(key.getProxyHost(), key.getProxyPort())); + Proxy azProxy = + new Proxy(Proxy.Type.HTTP, new InetSocketAddress(key.getProxyHost(), key.getProxyPort())); opContext.setProxy(azProxy); - boolean setProxyUser = !Strings.isNullOrEmpty(key.getProxyUser()) && !Strings.isNullOrEmpty(key.getProxyPassword()); - logger.debug("Setting Azure proxy {} user. Host: {}, port: {}", - setProxyUser ? "with" : "without", - key.getProxyHost(), - key.getProxyPort()); + boolean setProxyUser = + !Strings.isNullOrEmpty(key.getProxyUser()) + && !Strings.isNullOrEmpty(key.getProxyPassword()); + logger.debug( + "Setting Azure proxy {} user. Host: {}, port: {}", + setProxyUser ? "with" : "without", + key.getProxyHost(), + key.getProxyPort()); if (setProxyUser) { opContext.setProxyUsername(key.getProxyUser()); opContext.setProxyPassword(key.getProxyPassword());