ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava Namespaces.java
Date Fri, 29 Oct 2004 08:40:38 GMT
ias         2004/10/29 01:40:38

  Modified:    java/src/org/apache/axis/wsdl/toJava Namespaces.java
  Log:
  Additional patch on AXIS-1614 thanks to Jongjin.
  It removes duplicate adding of namespace-package maaping.
  
  Revision  Changes    Path
  1.12      +4 -1      ws-axis/java/src/org/apache/axis/wsdl/toJava/Namespaces.java
  
  Index: Namespaces.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/Namespaces.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Namespaces.java	24 Oct 2004 19:12:56 -0000	1.11
  +++ Namespaces.java	29 Oct 2004 08:40:37 -0000	1.12
  @@ -257,7 +257,10 @@
           } else {
               v = (Vector)pkg2NamespacesMap.get(value);
           }
  -        v.add(key);
  +        // NOT need to add an input key (namespace value) to v (package vector) 
  +        if (!v.contains(key)) { 
  +            v.add(key); 
  +        }
           pkg2NamespacesMap.put(value, v);
            
           return super.put(key, value);
  
  
  

Mime
View raw message