summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rw-r--r--src/com/isode/stroke/tls/java/JSSEContext.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/isode/stroke/tls/java/JSSEContext.java b/src/com/isode/stroke/tls/java/JSSEContext.java
index 77b9447..2928498 100644
--- a/src/com/isode/stroke/tls/java/JSSEContext.java
+++ b/src/com/isode/stroke/tls/java/JSSEContext.java
@@ -163,7 +163,7 @@ public class JSSEContext extends TLSContext {
}
String[] suitesToEnable = new String[]{};
if (!matchedSuites.isEmpty()) {
- suitesToEnable = (String[])matchedSuites.toArray();
+ suitesToEnable = matchedSuites.toArray(new String[matchedSuites.size()]);
}
sslEngine.setEnabledCipherSuites(suitesToEnable);