ws-scout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r558572 - /webservices/scout/trunk/scout/src/main/java/org/apache/ws/scout/registry/infomodel/ServiceBindingImpl.java
Date Mon, 23 Jul 2007 00:52:52 GMT
Author: kstam
Date: Sun Jul 22 17:52:22 2007
New Revision: 558572

URL: http://svn.apache.org/viewvc?view=rev&rev=558572
Log:
SCOUT-45, applying patch

Modified:
    webservices/scout/trunk/scout/src/main/java/org/apache/ws/scout/registry/infomodel/ServiceBindingImpl.java

Modified: webservices/scout/trunk/scout/src/main/java/org/apache/ws/scout/registry/infomodel/ServiceBindingImpl.java
URL: http://svn.apache.org/viewvc/webservices/scout/trunk/scout/src/main/java/org/apache/ws/scout/registry/infomodel/ServiceBindingImpl.java?view=diff&rev=558572&r1=558571&r2=558572
==============================================================================
--- webservices/scout/trunk/scout/src/main/java/org/apache/ws/scout/registry/infomodel/ServiceBindingImpl.java
(original)
+++ webservices/scout/trunk/scout/src/main/java/org/apache/ws/scout/registry/infomodel/ServiceBindingImpl.java
Sun Jul 22 17:52:22 2007
@@ -36,7 +36,7 @@
  */
 public class ServiceBindingImpl extends RegistryObjectImpl implements ServiceBinding
 {
-    private Collection<SpecificationLink> links = null;
+    private Collection<SpecificationLink> links = new ArrayList<SpecificationLink>();
     private String accessuri = null;
     private Service service = null;
     private ServiceBinding targetbinding = null;
@@ -54,7 +54,6 @@
 
     public void addSpecificationLink(SpecificationLink sl) throws JAXRException
     {
-        if(links == null) links = new ArrayList<SpecificationLink>();
         links.add(sl);
         ((SpecificationLinkImpl)sl).setServiceBinding(this);
     }
@@ -63,7 +62,6 @@
     {
         try
         {
-            if(links == null) links = new ArrayList<SpecificationLink>();
             Iterator iter = col.iterator();
             while(iter.hasNext())
             {
@@ -97,13 +95,11 @@
 
     public void removeSpecificationLink(SpecificationLink link) throws JAXRException
     {
-        if(links == null) links = new ArrayList<SpecificationLink>();
         links.remove(link);
     }
 
     public void removeSpecificationLinks(Collection<SpecificationLink> col) throws
JAXRException
     {
-        if(links == null) links = new ArrayList<SpecificationLink>();
         links.removeAll(col);
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: scout-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: scout-dev-help@ws.apache.org


Mime
View raw message