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 na...@apache.org on 2006/11/20 06:14:11 UTC
svn commit: r477048 -
/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java
Author: nadiramra
Date: Sun Nov 19 21:14:10 2006
New Revision: 477048
URL: http://svn.apache.org/viewvc?view=rev&rev=477048
Log:
code formatting - aligning code correctly.
Modified:
webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java
Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java?view=diff&rev=477048&r1=477047&r2=477048
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java (original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java Sun Nov 19 21:14:10 2006
@@ -177,36 +177,22 @@
boolean isPointerType = false;
if (type.isSimpleType())
- {
isPointerType = CUtils.isPointerType(CUtils.getclass4qname(type.getBaseType()));
- }
- else
- {
- // vvv FJP - 17667
- if( type.isRestriction())
- {
- // FJP - Find base type of the restricted type.
- type = CUtils.findBaseTypeOfRestriction( type, wscontext);
- String restBaseClass = CUtils.getBaseTypeOfRestrictionAsString( type);
+ else if( type.isRestriction()) // vvv FJP - 17667
+ {
+ // Find base type of the restricted type.
+ type = CUtils.findBaseTypeOfRestriction( type, wscontext);
+ String restBaseClass = CUtils.getBaseTypeOfRestrictionAsString( type);
- if( type == null)
- {
- System.out.println( "Warning - Could not find root base class of " + type.getName().getLocalPart());
- }
- else
- {
- if( restBaseClass != null)
- {
- isPointerType = CUtils.isPointerType( restBaseClass);
- }
- }
- }
- // ^^^ FJP - 17667
- else
- {
- isPointerType = CUtils.isPointerType(getCorrectParmNameConsideringArraysAndComplexTypes(attribs[i]));
- }
- }
+ if( type == null)
+ System.out.println( "Warning - Could not find root base class of " + type.getName().getLocalPart());
+ else if( restBaseClass != null)
+ isPointerType = CUtils.isPointerType( restBaseClass);
+ } // ^^^ FJP - 17667
+ else
+ {
+ isPointerType = CUtils.isPointerType(getCorrectParmNameConsideringArraysAndComplexTypes(attribs[i]));
+ }
if ((attribs[i].isSimpleType() || type.isSimpleType())
&& !attribs[i].isArray()
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org