diff options
author | Ingo Bauersachs <ingo@jitsi.org> | 2014-08-29 23:31:39 +0800 |
---|---|---|
committer | Ingo Bauersachs <ingo@jitsi.org> | 2014-08-29 23:31:39 +0800 |
commit | 3fd55e9c3bdcef6b25760e3dfe56ba1a2d6c4954 (patch) | |
tree | eca6e73b6fc0a61b19da781c464ca2a3ce71cc9f /src/net/java/sip/communicator/launcher/SIPCommunicatorJWS.java | |
parent | 0a5990694c831a7d13e091b388b7319b6307205d (diff) | |
download | jitsi-3fd55e9c3bdcef6b25760e3dfe56ba1a2d6c4954.zip jitsi-3fd55e9c3bdcef6b25760e3dfe56ba1a2d6c4954.tar.gz jitsi-3fd55e9c3bdcef6b25760e3dfe56ba1a2d6c4954.tar.bz2 |
Make JWS launcher Java 1.4 compatible
Diffstat (limited to 'src/net/java/sip/communicator/launcher/SIPCommunicatorJWS.java')
-rw-r--r-- | src/net/java/sip/communicator/launcher/SIPCommunicatorJWS.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/java/sip/communicator/launcher/SIPCommunicatorJWS.java b/src/net/java/sip/communicator/launcher/SIPCommunicatorJWS.java index 0f4f8b3..d0605dc 100644 --- a/src/net/java/sip/communicator/launcher/SIPCommunicatorJWS.java +++ b/src/net/java/sip/communicator/launcher/SIPCommunicatorJWS.java @@ -38,7 +38,7 @@ public class SIPCommunicatorJWS final String[] _chainArgs = chainArgs.split("\\s"); try { - Class<?> c = Class.forName(chainMain); + Class c = Class.forName(chainMain); final Method m = c.getMethod("main", _chainArgs.getClass()); new Thread() { @@ -73,8 +73,9 @@ public class SIPCommunicatorJWS SIPCommunicatorJWS.class .getResourceAsStream("/logging.properties")); - for (Handler h : LogManager.getLogManager().getLogger("").getHandlers()) - LogManager.getLogManager().getLogger("").removeHandler(h); + Handler[] hs = LogManager.getLogManager().getLogger("").getHandlers(); + for (int i = 0; i < hs.length; i++) + LogManager.getLogManager().getLogger("").removeHandler(hs[i]); LogManager.getLogManager().getLogger("").addHandler(new FileHandler()); LogManager.getLogManager().getLogger("") .addHandler(new ConsoleHandler()); |