dims 2003/01/15 05:53:07
Modified: java/src/org/apache/axis/wsdl/toJava
JavaGeneratorFactory.java
Log:
getTypes() is not necessary if all we are interested are Types and Not Elements, so
just use getTypeIndex
Revision Changes Path
1.33 +5 -9
xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaGeneratorFactory.java
Index: JavaGeneratorFactory.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaGeneratorFactory.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- JavaGeneratorFactory.java 30 Dec 2002 14:36:46 -0000 1.32
+++ JavaGeneratorFactory.java 15 Jan 2003 13:53:03 -0000 1.33
@@ -685,16 +685,12 @@
// the same (ignores [] ).
if (firstType) {
firstType = false;
- Vector types = symbolTable.getTypes();
- for (int j = 0; j < types.size(); ++j) {
+ Iterator types =
symbolTable.getTypeIndex().values().iterator();
+ while (types.hasNext()) {
TypeEntry type = (TypeEntry)
- types.elementAt(j);
- if (type != entry &&
- !(type instanceof Element) &&
- type.getBaseType() == null &&
- sameJavaClass(
- ((Type) entry).getName(),
- type.getName())) {
+ types.next();
+ if (type != entry && type.getBaseType() == null
&&
+ sameJavaClass(entry.getName(),
type.getName())) {
v.add(type);
}
}