aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/launcher/SIPCommunicatorJWS.java
diff options
context:
space:
mode:
authorIngo Bauersachs <ingo@jitsi.org>2014-08-29 23:31:39 +0800
committerIngo Bauersachs <ingo@jitsi.org>2014-08-29 23:31:39 +0800
commit3fd55e9c3bdcef6b25760e3dfe56ba1a2d6c4954 (patch)
treeeca6e73b6fc0a61b19da781c464ca2a3ce71cc9f /src/net/java/sip/communicator/launcher/SIPCommunicatorJWS.java
parent0a5990694c831a7d13e091b388b7319b6307205d (diff)
downloadjitsi-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.java7
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());