aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/systray/jdic
diff options
context:
space:
mode:
authorLyubomir Marinov <lyubomir.marinov@jitsi.org>2008-12-16 12:53:28 +0000
committerLyubomir Marinov <lyubomir.marinov@jitsi.org>2008-12-16 12:53:28 +0000
commitd02eba788a62f9a5e12c0a3e5324c9024b1606c7 (patch)
tree2328fc9b722d8cdf6bcdaa24294839f85067d8b2 /src/net/java/sip/communicator/impl/systray/jdic
parent6df051d5c9aca787c36696a6e4537635db6f6e75 (diff)
downloadjitsi-d02eba788a62f9a5e12c0a3e5324c9024b1606c7.zip
jitsi-d02eba788a62f9a5e12c0a3e5324c9024b1606c7.tar.gz
jitsi-d02eba788a62f9a5e12c0a3e5324c9024b1606c7.tar.bz2
- Reduces garbage created when working with AccoutID.getAccountProperties() which creates a copy of the internal Hashtable by introducing getAccountProperty(), getAccountPropertyString(), getAccountPropertyBoolean() and getAccountPropertyInt(). The last two also carry out the conversions between Object and boolean/int without additional allocations in contrast to most of the previous uses which would perform allocations.
- Modifies SimpleStatusMenu to load its necessary image once instead of three times and to spare a ImageIcon instance.
Diffstat (limited to 'src/net/java/sip/communicator/impl/systray/jdic')
-rw-r--r--src/net/java/sip/communicator/impl/systray/jdic/StatusSubMenu.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/java/sip/communicator/impl/systray/jdic/StatusSubMenu.java b/src/net/java/sip/communicator/impl/systray/jdic/StatusSubMenu.java
index 1d5a96f..5b178c0 100644
--- a/src/net/java/sip/communicator/impl/systray/jdic/StatusSubMenu.java
+++ b/src/net/java/sip/communicator/impl/systray/jdic/StatusSubMenu.java
@@ -184,9 +184,9 @@ public class StatusSubMenu
= (ProtocolProviderService) SystrayActivator.bundleContext
.getService(protocolProviderRefs[i]);
- boolean isHidden =
- provider.getAccountID().getAccountProperties().
- get(ProtocolProviderFactory.IS_PROTOCOL_HIDDEN) != null;
+ boolean isHidden =
+ provider.getAccountID().getAccountProperty(
+ ProtocolProviderFactory.IS_PROTOCOL_HIDDEN) != null;
if(!isHidden)
this.addAccount(provider);