diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2008-08-25 14:58:39 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2008-08-25 14:58:39 +0000 |
commit | 3eaed2f557e87e7294363d8095ef53ed2c52ab90 (patch) | |
tree | 444cb8c7a95d841d8b863cc5eda74c6ac18298e1 /test/net/java | |
parent | 504fa02ae9e18dabdfae415a29f625f9accd9c53 (diff) | |
download | jitsi-3eaed2f557e87e7294363d8095ef53ed2c52ab90.zip jitsi-3eaed2f557e87e7294363d8095ef53ed2c52ab90.tar.gz jitsi-3eaed2f557e87e7294363d8095ef53ed2c52ab90.tar.bz2 |
Fixes warnings from the Potential Programming Problems category of Eclipse SDK: access to references known to be null and assignments with no effect.
Diffstat (limited to 'test/net/java')
7 files changed, 9 insertions, 9 deletions
diff --git a/test/net/java/sip/communicator/slick/protocol/gibberish/GibberishSlickFixture.java b/test/net/java/sip/communicator/slick/protocol/gibberish/GibberishSlickFixture.java index 301135d..4e35011 100644 --- a/test/net/java/sip/communicator/slick/protocol/gibberish/GibberishSlickFixture.java +++ b/test/net/java/sip/communicator/slick/protocol/gibberish/GibberishSlickFixture.java @@ -112,7 +112,7 @@ public class GibberishSlickFixture assertTrue( "Failed to find a provider factory service for protocol Gibberish", - serRefs != null || serRefs.length > 0); + (serRefs != null) && (serRefs.length > 0)); //Keep the reference for later usage. providerFactory = (ProtocolProviderFactory)bc.getService(serRefs[0]); diff --git a/test/net/java/sip/communicator/slick/protocol/icq/IcqSlickFixture.java b/test/net/java/sip/communicator/slick/protocol/icq/IcqSlickFixture.java index 3abfefb..0939a64 100644 --- a/test/net/java/sip/communicator/slick/protocol/icq/IcqSlickFixture.java +++ b/test/net/java/sip/communicator/slick/protocol/icq/IcqSlickFixture.java @@ -87,7 +87,7 @@ public class IcqSlickFixture extends TestCase assertTrue( "Failed to find a provider factory service for protocol ICQ", - serRefs != null || serRefs.length > 0); + (serRefs != null) && (serRefs.length > 0)); //Keep the reference for later usage. providerFactory = (ProtocolProviderFactory) diff --git a/test/net/java/sip/communicator/slick/protocol/icq/TestAccountInstallation.java b/test/net/java/sip/communicator/slick/protocol/icq/TestAccountInstallation.java index bcd5eee..d458d23 100644 --- a/test/net/java/sip/communicator/slick/protocol/icq/TestAccountInstallation.java +++ b/test/net/java/sip/communicator/slick/protocol/icq/TestAccountInstallation.java @@ -102,7 +102,7 @@ public class TestAccountInstallation extends TestCase assertTrue( "Failed to find a provider factory service for protocol ICQ", - serRefs != null || serRefs.length > 0); + (serRefs != null) && (serRefs.length > 0)); //Keep the reference for later usage. ProtocolProviderFactory icqProviderFactory = @@ -232,7 +232,7 @@ public class TestAccountInstallation extends TestCase assertTrue( "Failed to find a provider factory service for protocol ICQ", - serRefs != null || serRefs.length > 0); + (serRefs != null) && (serRefs.length > 0)); //Keep the reference for later usage. ProtocolProviderFactory icqProviderFactory = @@ -351,7 +351,7 @@ public class TestAccountInstallation extends TestCase assertTrue( "Failed to find a provider factory service for protocol ICQ", - serRefs != null || serRefs.length > 0); + (serRefs != null) && (serRefs.length > 0)); //Keep the reference for later usage. icqProviderFactory = (ProtocolProviderFactory) diff --git a/test/net/java/sip/communicator/slick/protocol/jabber/JabberSlickFixture.java b/test/net/java/sip/communicator/slick/protocol/jabber/JabberSlickFixture.java index 4c714e4..865eddf 100644 --- a/test/net/java/sip/communicator/slick/protocol/jabber/JabberSlickFixture.java +++ b/test/net/java/sip/communicator/slick/protocol/jabber/JabberSlickFixture.java @@ -121,7 +121,7 @@ public class JabberSlickFixture assertTrue( "Failed to find a provider factory service for protocol Jabber", - serRefs != null || serRefs.length > 0); + (serRefs != null) && (serRefs.length > 0)); //Keep the reference for later usage. providerFactory = (ProtocolProviderFactory)bc.getService(serRefs[0]); diff --git a/test/net/java/sip/communicator/slick/protocol/msn/MsnSlickFixture.java b/test/net/java/sip/communicator/slick/protocol/msn/MsnSlickFixture.java index a1ff1e2..330c1e2 100644 --- a/test/net/java/sip/communicator/slick/protocol/msn/MsnSlickFixture.java +++ b/test/net/java/sip/communicator/slick/protocol/msn/MsnSlickFixture.java @@ -112,7 +112,7 @@ public class MsnSlickFixture assertTrue( "Failed to find a provider factory service for protocol msn", - serRefs != null || serRefs.length > 0); + (serRefs != null) && (serRefs.length > 0)); //Keep the reference for later usage. providerFactory = (ProtocolProviderFactory)bc.getService(serRefs[0]); diff --git a/test/net/java/sip/communicator/slick/protocol/sip/SipSlickFixture.java b/test/net/java/sip/communicator/slick/protocol/sip/SipSlickFixture.java index 4afba67..557e23e 100644 --- a/test/net/java/sip/communicator/slick/protocol/sip/SipSlickFixture.java +++ b/test/net/java/sip/communicator/slick/protocol/sip/SipSlickFixture.java @@ -109,7 +109,7 @@ public class SipSlickFixture assertTrue( "Failed to find a provider factory service for protocol SIP", - serRefs != null || serRefs.length > 0); + (serRefs != null) && (serRefs.length > 0)); //Keep the reference for later usage. providerFactory = (ProtocolProviderFactory)bc.getService(serRefs[0]); diff --git a/test/net/java/sip/communicator/slick/protocol/yahoo/YahooSlickFixture.java b/test/net/java/sip/communicator/slick/protocol/yahoo/YahooSlickFixture.java index 1a62418..75d9e0c 100644 --- a/test/net/java/sip/communicator/slick/protocol/yahoo/YahooSlickFixture.java +++ b/test/net/java/sip/communicator/slick/protocol/yahoo/YahooSlickFixture.java @@ -112,7 +112,7 @@ public class YahooSlickFixture assertTrue( "Failed to find a provider factory service for protocol yahoo", - serRefs != null || serRefs.length > 0); + (serRefs != null) && (serRefs.length > 0)); //Keep the reference for later usage. providerFactory = (ProtocolProviderFactory)bc.getService(serRefs[0]); |