diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-02-13 13:48:36 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-02-13 13:48:36 -0330 |
commit | 51454ae5a6219fb8e3a6464b35f545b620001279 (patch) | |
tree | 42ad16d4151a9ffb5f7675c5307c5e20f01cd159 /java/src/IceSSL/Instance.java | |
parent | Added deprecated warning to error outputs (diff) | |
download | ice-51454ae5a6219fb8e3a6464b35f545b620001279.tar.bz2 ice-51454ae5a6219fb8e3a6464b35f545b620001279.tar.xz ice-51454ae5a6219fb8e3a6464b35f545b620001279.zip |
Bug 2491 - Use getPropertyAsList
Diffstat (limited to 'java/src/IceSSL/Instance.java')
-rw-r--r-- | java/src/IceSSL/Instance.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/java/src/IceSSL/Instance.java b/java/src/IceSSL/Instance.java index 7da138e6c78..a2338c0b74a 100644 --- a/java/src/IceSSL/Instance.java +++ b/java/src/IceSSL/Instance.java @@ -50,14 +50,13 @@ class Instance // // Select protocols. // - String protocols = properties.getProperty(prefix + "Protocols"); - if(protocols.length() > 0) + String[] protocols = properties.getPropertyAsList(prefix + "Protocols"); + if(protocols.length != 0) { java.util.ArrayList<String> l = new java.util.ArrayList<String>(); - String[] arr = protocols.split("[ \t,]+"); - for(int i = 0; i < arr.length; ++i) + for(int i = 0; i < protocols.length; ++i) { - String s = arr[i].toLowerCase(); + String s = protocols[i].toLowerCase(); if(s.equals("ssl3") || s.equals("sslv3")) { l.add("SSLv3"); @@ -69,7 +68,7 @@ class Instance else { Ice.PluginInitializationException e = new Ice.PluginInitializationException(); - e.reason = "IceSSL: unrecognized protocol `" + arr[i] + "'"; + e.reason = "IceSSL: unrecognized protocol `" + protocols[i] + "'"; throw e; } } |