axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r683883 - /webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL11.java
Date Fri, 08 Aug 2008 07:14:44 GMT
Author: nandana
Date: Fri Aug  8 00:14:43 2008
New Revision: 683883

URL: http://svn.apache.org/viewvc?rev=683883&view=rev
Log:
Avoiding the same policy being added twice

Modified:
    webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL11.java

Modified: webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL11.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL11.java?rev=683883&r1=683882&r2=683883&view=diff
==============================================================================
--- webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL11.java
(original)
+++ webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL11.java
Fri Aug  8 00:14:43 2008
@@ -607,9 +607,17 @@
 		Policy policy;
 		OMElement policyElement;
 		OMNode firstChild;
+		ArrayList keys = new ArrayList();		
 
 		for (; iterator.hasNext();) {
 			policy = (Policy) iterator.next();
+			
+		       String key = policy.getId();
+		       if (keys.contains(key)) {
+		                continue;
+		       }
+		       keys.add(key);
+			
 			policyElement = PolicyUtil.getPolicyComponentAsOMElement(policy,
 					serializer);
 			firstChild = definition.getFirstOMChild();



Mime
View raw message