aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIngo Bauersachs <ingo@jitsi.org>2017-01-07 20:48:51 +0100
committerIngo Bauersachs <ingo@jitsi.org>2017-01-07 20:48:51 +0100
commit029753e4262330865773848b895c6ca2af16f5a5 (patch)
tree81f93b457d0392a52323df924b44b9de7339c2d9 /src
parent70b8b7d67b894fe7753b8681ee37cfa4721f589f (diff)
downloadjitsi-029753e4262330865773848b895c6ca2af16f5a5.zip
jitsi-029753e4262330865773848b895c6ca2af16f5a5.tar.gz
jitsi-029753e4262330865773848b895c6ca2af16f5a5.tar.bz2
Remove redundant casts
Diffstat (limited to 'src')
-rw-r--r--src/net/java/sip/communicator/impl/protocol/irc/OperationSetMultiUserChatIrcImpl.java2
-rw-r--r--src/net/java/sip/communicator/plugin/ircaccregwizz/IrcAccountRegistrationWizard.java3
-rw-r--r--src/net/java/sip/communicator/plugin/pluginmanager/BundleComparator.java4
-rw-r--r--src/net/java/sip/communicator/plugin/skinmanager/BundleComparator.java4
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)
{