diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2010-12-08 20:24:43 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2010-12-08 20:24:43 +0000 |
commit | a1e6ed8629cbc8b5ce8b4f7b83ac5efc14da9eca (patch) | |
tree | 31a185064399af116e885c9c4387f62702a83080 | |
parent | c1a8cfd9bcc6629f9d76d57d03979ad6e50a47bb (diff) | |
download | jitsi-a1e6ed8629cbc8b5ce8b4f7b83ac5efc14da9eca.zip jitsi-a1e6ed8629cbc8b5ce8b4f7b83ac5efc14da9eca.tar.gz jitsi-a1e6ed8629cbc8b5ce8b4f7b83ac5efc14da9eca.tar.bz2 |
Fixes an incorrectly spelled "Netowrk" in Tools > Options > Events.
-rw-r--r-- | src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java b/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java index 46f9069..3d287cf 100644 --- a/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java +++ b/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java @@ -8,7 +8,6 @@ package net.java.sip.communicator.plugin.reconnectplugin; import java.net.*; import java.util.*; -import java.util.ArrayList; import net.java.sip.communicator.service.configuration.*; import net.java.sip.communicator.service.gui.*; @@ -77,15 +76,15 @@ public class ReconnectPluginActivator * registered. When a provider is unregistered it is removed * from this collection. */ - private Map<ProtocolProviderService, List<String>> autoReconnEnabledProviders = - new Hashtable<ProtocolProviderService, List<String>>(); + private final Map<ProtocolProviderService, List<String>> autoReconnEnabledProviders + = new HashMap<ProtocolProviderService, List<String>>(); /** * Holds the currently reconnecting providers and their reconnect tasks. * When they get connected they are removed from this collection. */ - private Map<ProtocolProviderService, ReconnectTask> currentlyReconnecting = - new Hashtable<ProtocolProviderService, ReconnectTask>(); + private final Map<ProtocolProviderService, ReconnectTask> currentlyReconnecting + = new HashMap<ProtocolProviderService, ReconnectTask>(); /** * If network is down we save here the providers which need to be reconnected. @@ -130,7 +129,7 @@ public class ReconnectPluginActivator /** * Network notifications event type. */ - public static final String NETWORK_NOTIFICATIONS = "NetowrkNotifications"; + public static final String NETWORK_NOTIFICATIONS = "NetworkNotifications"; /** * @@ -421,7 +420,7 @@ public class ReconnectPluginActivator if(event.getType() == ChangeEvent.IFACE_UP) { // no connection so one is up, lets connect - if(connectedInterfaces.size() == 0) + if(connectedInterfaces.isEmpty()) { Iterator<ProtocolProviderService> iter = needsReconnection.iterator(); @@ -590,7 +589,7 @@ public class ReconnectPluginActivator if(needsReconnection.contains(pp)) return; - if(connectedInterfaces.size() == 0) + if(connectedInterfaces.isEmpty()) { needsReconnection.add(pp); |