You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by wy...@apache.org on 2010/09/29 00:29:29 UTC

svn commit: r1002387 - /xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java

Author: wypoon
Date: Tue Sep 28 22:29:29 2010
New Revision: 1002387

URL: http://svn.apache.org/viewvc?rev=1002387&view=rev
Log:
Fix for XMLBEANS-396 as suggested by Chris Clark; Cezar didn't change isobj to xmltype.

Modified:
    xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java

Modified: xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java?rev=1002387&r1=1002386&r2=1002387&view=diff
==============================================================================
--- xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java (original)
+++ xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java Tue Sep 28 22:29:29 2010
@@ -2292,10 +2292,10 @@ public final class SchemaTypeCodePrinter
         }
     }
 
-       void printSetterImpls(QName qName, SchemaProperty prop, boolean isAttr,
-                       String propertyName, int javaType, String type, String xtype,
-                       boolean nillable, boolean optional, boolean several, boolean singleton,
-                       boolean isunion, String identifier, String setIdentifier, SchemaType sType)
+    void printSetterImpls(QName qName, SchemaProperty prop, boolean isAttr,
+        String propertyName, int javaType, String type, String xtype,
+        boolean nillable, boolean optional, boolean several, boolean singleton,
+        boolean isunion, String identifier, String setIdentifier, SchemaType sType)
         throws IOException
     {
         String safeVarName = NameUtil.nonJavaKeyword(NameUtil.lowerCamelCase(propertyName));
@@ -2478,7 +2478,7 @@ public final class SchemaTypeCodePrinter
             printJavaDoc("Sets ith " + propdesc);
             emit("public void set" + arrayName + "(int i, " + type + " " + safeVarName + ")");
             startBlock();
-            if ( isobj && !isSubstGroup )
+            if ( xmltype && !isSubstGroup )
             {
                 emitPre(sType, PrePostExtension.OPERATION_SET, identifier, isAttr, "i");
                 emit("generatedSetterHelperImpl(" + safeVarName + ", " + setIdentifier + ", i, " +



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org