You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2004/01/01 07:49:25 UTC

cvs commit: ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws WrapperUtils.java

sanjaya     2003/12/31 22:49:25

  Modified:    c/src/wsdl/org/apache/axis/wsdl/wsdl2ws Tag: CWrapperSupport
                        WrapperUtils.java
  Log:
  changes to accomodate the signature changes of Type.getElementnames
  and Type.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.3.4.3   +5 -3      ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WrapperUtils.java
  
  Index: WrapperUtils.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WrapperUtils.java,v
  retrieving revision 1.3.4.2
  retrieving revision 1.3.4.3
  diff -u -r1.3.4.2 -r1.3.4.3
  --- WrapperUtils.java	24 Dec 2003 11:28:53 -0000	1.3.4.2
  +++ WrapperUtils.java	1 Jan 2004 06:49:25 -0000	1.3.4.3
  @@ -62,6 +62,7 @@
   import java.util.Enumeration;
   import java.util.Stack;
   import java.util.StringTokenizer;
  +import java.util.Iterator;
   
   import javax.xml.namespace.QName;
   
  @@ -227,12 +228,13 @@
   	public static Type getArrayType(Type type)throws WrapperFault{
   		if(!type.isArray())
   			return null;
  -		Enumeration elements = type.getElementnames();
  -		if(elements.hasMoreElements()){
  +		Iterator elements = type.getElementnames();
  +		if(elements.hasNext()){
   			return type.getElementForElementName(
  -				(String)elements.nextElement()).getType();
  +				(String)elements.next()).getType();
   		}
   		throw new WrapperFault("Array type do not have any attibutes");
   	}
  +
   }