diff options
Diffstat (limited to 'src/net/java')
4 files changed, 6 insertions, 7 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/irc/OperationSetMultiUserChatIrcImpl.java b/src/net/java/sip/communicator/impl/protocol/irc/OperationSetMultiUserChatIrcImpl.java index 6b09978..7a1c2b3 100644 --- a/src/net/java/sip/communicator/impl/protocol/irc/OperationSetMultiUserChatIrcImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/irc/OperationSetMultiUserChatIrcImpl.java @@ -275,7 +275,7 @@ public class OperationSetMultiUserChatIrcImpl */ protected ChatRoomIrcImpl getChatRoom(final String chatRoomName) { - return (ChatRoomIrcImpl) this.chatRoomCache.get(chatRoomName); + return this.chatRoomCache.get(chatRoomName); } /** diff --git a/src/net/java/sip/communicator/plugin/ircaccregwizz/IrcAccountRegistrationWizard.java b/src/net/java/sip/communicator/plugin/ircaccregwizz/IrcAccountRegistrationWizard.java index f062058..962aeb1 100644 --- a/src/net/java/sip/communicator/plugin/ircaccregwizz/IrcAccountRegistrationWizard.java +++ b/src/net/java/sip/communicator/plugin/ircaccregwizz/IrcAccountRegistrationWizard.java @@ -358,8 +358,7 @@ public class IrcAccountRegistrationWizard ServiceReference<ProtocolProviderService> serRef = providerFactory .getProviderForAccount(accountID); - protocolProvider = (ProtocolProviderService) - IrcAccRegWizzActivator.bundleContext + protocolProvider = IrcAccRegWizzActivator.bundleContext .getService(serRef); } catch (IllegalStateException exc) diff --git a/src/net/java/sip/communicator/plugin/pluginmanager/BundleComparator.java b/src/net/java/sip/communicator/plugin/pluginmanager/BundleComparator.java index 06d2db4..48a4305 100644 --- a/src/net/java/sip/communicator/plugin/pluginmanager/BundleComparator.java +++ b/src/net/java/sip/communicator/plugin/pluginmanager/BundleComparator.java @@ -37,8 +37,8 @@ public class BundleComparator implements Comparator<Bundle> */ public int compare(Bundle arg0, Bundle arg1) { - String n1 = (String) arg0.getHeaders().get(Constants.BUNDLE_NAME); - String n2 = (String) arg1.getHeaders().get(Constants.BUNDLE_NAME); + String n1 = arg0.getHeaders().get(Constants.BUNDLE_NAME); + String n2 = arg1.getHeaders().get(Constants.BUNDLE_NAME); if (n1 == null) { diff --git a/src/net/java/sip/communicator/plugin/skinmanager/BundleComparator.java b/src/net/java/sip/communicator/plugin/skinmanager/BundleComparator.java index b77bbbe..251052a 100644 --- a/src/net/java/sip/communicator/plugin/skinmanager/BundleComparator.java +++ b/src/net/java/sip/communicator/plugin/skinmanager/BundleComparator.java @@ -38,8 +38,8 @@ public class BundleComparator */ public int compare(Bundle arg0, Bundle arg1) { - String n1 = (String) arg0.getHeaders().get(Constants.BUNDLE_NAME); - String n2 = (String) arg1.getHeaders().get(Constants.BUNDLE_NAME); + String n1 = arg0.getHeaders().get(Constants.BUNDLE_NAME); + String n2 = arg1.getHeaders().get(Constants.BUNDLE_NAME); if (n1 == null) { |