Author: anil
Date: Mon Sep 25 13:20:39 2006
New Revision: 449801

URL: http://svn.apache.org/viewvc?view=rev&rev=449801
Log:
SCOUT-19:ServiceBinding.getSpecificationLinks should not return null

Modified:
    
webservices/scout/branches/v0.7rc2/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/ServiceBindingImpl.java

Modified: 
webservices/scout/branches/v0.7rc2/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/ServiceBindingImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/scout/branches/v0.7rc2/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/ServiceBindingImpl.java?view=diff&rev=449801&r1=449800&r2=449801
==============================================================================
--- 
webservices/scout/branches/v0.7rc2/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/ServiceBindingImpl.java
 (original)
+++ 
webservices/scout/branches/v0.7rc2/modules/scout/src/java/org/apache/ws/scout/registry/infomodel/ServiceBindingImpl.java
 Mon Sep 25 13:20:39 2006
@@ -35,7 +35,7 @@
  */
 public class ServiceBindingImpl extends RegistryObjectImpl implements 
ServiceBinding
 {
-    private Collection links = null;
+    private Collection links = new ArrayList();
     private String accessuri = null;
     private Service service = null;
     private ServiceBinding targetbinding = null;
@@ -52,8 +52,7 @@
     }
 
     public void addSpecificationLink(SpecificationLink sl) throws JAXRException
-    {
-        if(links == null) links = new ArrayList();
+    { 
         links.add(sl);
         ((SpecificationLinkImpl)sl).setServiceBinding(this);
     }
@@ -61,8 +60,7 @@
     public void addSpecificationLinks(Collection col) throws JAXRException
     {
         try
-        {
-            if(links == null) links = new ArrayList();
+        { 
             Iterator iter = col.iterator();
             while(iter.hasNext())
             {
@@ -95,14 +93,12 @@
     }
 
     public void removeSpecificationLink(SpecificationLink link) throws 
JAXRException
-    {
-        if(links == null) links = new ArrayList();
+    { 
         links.remove(link);
     }
 
     public void removeSpecificationLinks(Collection col) throws JAXRException
-    {
-        if(links == null) links = new ArrayList();
+    { 
         links.removeAll(col);
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to