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 di...@apache.org on 2002/09/12 19:09:26 UTC
cvs commit: xml-axis/java/src/org/apache/axis/wsdl/toJava JavaGeneratorFactory.java
dims 2002/09/12 10:09:26
Modified: java/src/org/apache/axis/wsdl/toJava
JavaGeneratorFactory.java
Log:
Don't waste time if the name is already set.
Revision Changes Path
1.23 +4 -2 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.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- JavaGeneratorFactory.java 9 Sep 2002 17:03:24 -0000 1.22
+++ JavaGeneratorFactory.java 12 Sep 2002 17:09:26 -0000 1.23
@@ -347,9 +347,11 @@
Vector v = (Vector) it.next();
for (int i = 0; i < v.size(); ++i) {
SymTabEntry entry = (SymTabEntry) v.elementAt(i);
+ if(entry.getName() != null)
+ continue;
- // Use the type or the referenced type's QName to generate the java name.
- if (entry instanceof TypeEntry && entry.getName() == null) {
+ // Use the type or the referenced type's QName to generate the java name.
+ if (entry instanceof TypeEntry) {
TypeEntry tEntry = (TypeEntry) entry;
String dims = tEntry.getDimensions();
TypeEntry refType = tEntry.getRefType();