diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-08-31 13:15:22 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-08-31 13:15:22 +0000 |
commit | d84529346a391f3fd33d3bff5ebb808a837429d3 (patch) | |
tree | 85e3fb45421099bf6fe6429f491c13e185c5f85b /src/net/java/sip/communicator/impl/protocol/icq/ProtocolProviderFactoryIcqImpl.java | |
parent | 45e152d9b19a7ebd4dcd3cb0631a4cc3f283ba2a (diff) | |
download | jitsi-d84529346a391f3fd33d3bff5ebb808a837429d3.zip jitsi-d84529346a391f3fd33d3bff5ebb808a837429d3.tar.gz jitsi-d84529346a391f3fd33d3bff5ebb808a837429d3.tar.bz2 |
Commits another part of the patch provided by Sebastien Vincent on the dev mailing list in an e-mail with the subject "Fix lot of warnings in the code" which fixes warnings in the src directory.
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/icq/ProtocolProviderFactoryIcqImpl.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/icq/ProtocolProviderFactoryIcqImpl.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/icq/ProtocolProviderFactoryIcqImpl.java b/src/net/java/sip/communicator/impl/protocol/icq/ProtocolProviderFactoryIcqImpl.java index 75c05fb..3d10637 100644 --- a/src/net/java/sip/communicator/impl/protocol/icq/ProtocolProviderFactoryIcqImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/icq/ProtocolProviderFactoryIcqImpl.java @@ -50,7 +50,7 @@ public class ProtocolProviderFactoryIcqImpl * @return the AccountID of the newly created account */ public AccountID installAccount( String userIDStr, - Map accountProperties) + Map<String, String> accountProperties) { BundleContext context = IcqActivator.getBundleContext(); if (context == null) @@ -94,7 +94,7 @@ public class ProtocolProviderFactoryIcqImpl * properties defining the new account. * @return the AccountID of the newly created account */ - public AccountID loadAccount(Map accountProperties) + public AccountID loadAccount(Map<String, String> accountProperties) { // there are two factories - one for icq accounts and one for aim ones. // if we are trying to load an icq account in aim factory - skip it @@ -109,7 +109,7 @@ public class ProtocolProviderFactoryIcqImpl return super.loadAccount(accountProperties); } - protected AccountID createAccountID(String userID, Map accountProperties) + protected AccountID createAccountID(String userID, Map<String, String> accountProperties) { return new IcqAccountID(userID, accountProperties); } @@ -126,7 +126,7 @@ public class ProtocolProviderFactoryIcqImpl @Override public void modifyAccount( ProtocolProviderService protocolProvider, - Map accountProperties) + Map<String, String> accountProperties) throws NullPointerException { // Make sure the specified arguments are valid. @@ -151,8 +151,7 @@ public class ProtocolProviderFactoryIcqImpl if(!registeredAccounts.containsKey(accountID)) return; - ServiceRegistration registration - = (ServiceRegistration) registeredAccounts.get(accountID); + ServiceRegistration registration = registeredAccounts.get(accountID); // kill the service if (registration != null) @@ -171,7 +170,7 @@ public class ProtocolProviderFactoryIcqImpl // and check for a password. this.storeAccount(accountID); - Hashtable properties = new Hashtable(); + Hashtable<String, String> properties = new Hashtable<String, String>(); properties.put(PROTOCOL, ProtocolNames.ICQ); properties.put(USER_ID, accountID.getUserID()); |