Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Commit 97461d9

Browse files
author
Menon
committed
issue #580: support for configured TLS and cipherSuites : organizing variable initializers
1 parent 1a86b45 commit 97461d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/microsoft/exchange/webservices/data/core/EwsSSLProtocolSocketFactory.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,18 +148,18 @@ public static EwsSSLProtocolSocketFactory build(
148148
SSLContext sslContext = createSslContext(trustManager);
149149

150150
//read system properties
151-
String[] keepAliveStrategyCopy = null;
151+
String[] keepAliveStrategyCopy;
152152
keepAliveStrategyCopy = split(System.getProperty("https.protocols"));
153-
String[] targetAuthStrategyCopy = null;
153+
String[] targetAuthStrategyCopy;
154154
targetAuthStrategyCopy = split(System.getProperty("https.cipherSuites"));
155155

156-
if(null != keepAliveStrategyCopy || null != targetAuthStrategyCopy) {
156+
if (null != keepAliveStrategyCopy || null != targetAuthStrategyCopy) {
157157
return new EwsSSLProtocolSocketFactory(sslContext,keepAliveStrategyCopy,targetAuthStrategyCopy, hostnameVerifier);
158158
} else {
159159
return new EwsSSLProtocolSocketFactory(sslContext, hostnameVerifier);
160160
}
161-
162161
}
162+
163163
private static String[] split(String s) {
164164
return TextUtils.isBlank(s)?null:s.split(" *, *");
165165
}

0 commit comments

Comments
 (0)