Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-08-08 04:29:05 -0400
committerUwe Stieber2012-08-08 04:29:05 -0400
commita19c1e543fa9fd9020336115828e4a85e78906e3 (patch)
tree69a0f1851e8f6b90fb3a6b656c46db7c65efdb24 /target_explorer/plugins/org.eclipse.tcf.te.runtime.services
parent0561f950fe6033e1244d06b0410f95ee5b8f717c (diff)
downloadorg.eclipse.tcf-a19c1e543fa9fd9020336115828e4a85e78906e3.tar.gz
org.eclipse.tcf-a19c1e543fa9fd9020336115828e4a85e78906e3.tar.xz
org.eclipse.tcf-a19c1e543fa9fd9020336115828e4a85e78906e3.zip
Target Explorer: Fix FindBugs warnings
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.services')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/AbstractServiceManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/AbstractServiceManager.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/AbstractServiceManager.java
index 8cdf00fd9..1de409e6e 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/AbstractServiceManager.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.services/src/org/eclipse/tcf/te/runtime/services/AbstractServiceManager.java
@@ -351,7 +351,7 @@ public abstract class AbstractServiceManager {
Assert.isNotNull(serviceType);
Collection<ServiceProxy> proxies = services.values();
- if (proxies != null && !proxies.isEmpty()) {
+ if (!proxies.isEmpty()) {
List<ServiceProxy> candidates = new ArrayList<ServiceProxy>();
boolean isInterface = serviceType.isInterface();
for (ServiceProxy proxy : proxies) {
@@ -391,7 +391,7 @@ public abstract class AbstractServiceManager {
Collection<ServiceProxy> proxies = services.values();
List<IService> services = new ArrayList<IService>();
- if (proxies != null && !proxies.isEmpty()) {
+ if (!proxies.isEmpty()) {
List<ServiceProxy> candidates = new ArrayList<ServiceProxy>();
for (ServiceProxy proxy : proxies) {
if (proxy.isMatching(serviceType) && proxy.isEnabled(context)) {
@@ -433,7 +433,7 @@ public abstract class AbstractServiceManager {
// Get all service contributions
Collection<ServiceProxy> proxies = services.values();
- if (proxies != null && !proxies.isEmpty()) {
+ if (!proxies.isEmpty()) {
for (ServiceProxy proxy : proxies) {
if (proxy.isMatching(serviceTypeName) && proxy.isEnabled(context)) {
return true;

Back to the top