minor code clean up
This commit is contained in:
parent
00bc7a4b06
commit
e38aa30a84
|
@ -29,7 +29,7 @@ public class SSLSocketHelper {
|
|||
final Collection<String> supportedProtocols = new LinkedList<>(
|
||||
Arrays.asList(sslSocket.getSupportedProtocols()));
|
||||
supportedProtocols.remove("SSLv3");
|
||||
supportProtocols = supportedProtocols.toArray(new String[supportedProtocols.size()]);
|
||||
supportProtocols = supportedProtocols.toArray(new String[0]);
|
||||
|
||||
sslSocket.setEnabledProtocols(supportProtocols);
|
||||
|
||||
|
|
Loading…
Reference in a new issue