diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-10-17 21:12:14 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-10-17 21:12:14 +0000 |
commit | 4268a877c9752967456772cbbc2e33200e2a476c (patch) | |
tree | 86e6492dd9d601b1fdea7bd29bd19534e45f7f9e /src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java | |
parent | 7277bf34b9abb4a5b2fa4f4984d2bc02952b432d (diff) | |
download | jitsi-4268a877c9752967456772cbbc2e33200e2a476c.zip jitsi-4268a877c9752967456772cbbc2e33200e2a476c.tar.gz jitsi-4268a877c9752967456772cbbc2e33200e2a476c.tar.bz2 |
Uses AbstractProtocolProviderService#addSupportedOperationSet in its extenders because it's type-safe and shortens the code.
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java b/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java index f493424..10b1354 100644 --- a/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java @@ -144,33 +144,29 @@ public class ProtocolProviderServiceSSHImpl OperationSetPersistentPresenceSSHImpl persistentPresence = new OperationSetPersistentPresenceSSHImpl(this); - supportedOperationSets.put( - OperationSetPersistentPresence.class.getName(), - persistentPresence); - + addSupportedOperationSet( + OperationSetPersistentPresence.class, + persistentPresence); //register it once again for those that simply need presence and //won't be smart enough to check for a persistent presence //alternative - supportedOperationSets.put( - OperationSetPresence.class.getName(), - persistentPresence); + addSupportedOperationSet( + OperationSetPresence.class, + persistentPresence); //initialize the IM operation set basicInstantMessaging = new OperationSetBasicInstantMessagingSSHImpl( this); - - supportedOperationSets.put( - OperationSetBasicInstantMessaging.class.getName(), - basicInstantMessaging); + addSupportedOperationSet( + OperationSetBasicInstantMessaging.class, + basicInstantMessaging); //initialze the file transfer operation set - fileTranfer = new OperationSetFileTransferSSHImpl( - this); - - supportedOperationSets.put( - OperationSetFileTransfer.class.getName(), - fileTranfer); + fileTranfer = new OperationSetFileTransferSSHImpl(this); + addSupportedOperationSet( + OperationSetFileTransfer.class, + fileTranfer); isInitialized = true; } |