Author: mrglavas
Date: Tue Dec 21 00:51:37 2010
New Revision: 1051351

URL: http://svn.apache.org/viewvc?rev=1051351&view=rev
Log:
Use the singleton empty list instead of creating new ones.

Modified:
    
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java

Modified: 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java
URL: 
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java?rev=1051351&r1=1051350&r2=1051351&view=diff
==============================================================================
--- 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java
 (original)
+++ 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/SchemaGrammar.java
 Tue Dec 21 00:51:37 2010
@@ -659,19 +659,19 @@ public class SchemaGrammar implements XS
             XSComplexTypeDecl anyType = getXSAnyType(schemaVersion);
             annotationType.setValues("#AnonType_" + 
SchemaSymbols.ELT_ANNOTATION, fTargetNamespace, anyType,
                     XSConstants.DERIVATION_RESTRICTION, 
XSConstants.DERIVATION_NONE, (short) (XSConstants.DERIVATION_EXTENSION | 
XSConstants.DERIVATION_RESTRICTION),
-                    XSComplexTypeDecl.CONTENTTYPE_ELEMENT, false, 
annotationAttrs, null, annotationParticle, new XSObjectListImpl(null, 0), null);
+                    XSComplexTypeDecl.CONTENTTYPE_ELEMENT, false, 
annotationAttrs, null, annotationParticle, XSObjectListImpl.EMPTY_LIST, null);
             annotationType.setName("#AnonType_" + 
SchemaSymbols.ELT_ANNOTATION);
             annotationType.setIsAnonymous();
             
             documentationType.setValues("#AnonType_" + 
SchemaSymbols.ELT_DOCUMENTATION, fTargetNamespace, anyType,
                     XSConstants.DERIVATION_RESTRICTION, 
XSConstants.DERIVATION_NONE, (short) (XSConstants.DERIVATION_EXTENSION | 
XSConstants.DERIVATION_RESTRICTION),
-                    XSComplexTypeDecl.CONTENTTYPE_MIXED, false, 
documentationAttrs, null, anyWCSequenceParticle, new XSObjectListImpl(null, 0), 
null);
+                    XSComplexTypeDecl.CONTENTTYPE_MIXED, false, 
documentationAttrs, null, anyWCSequenceParticle, XSObjectListImpl.EMPTY_LIST, 
null);
             documentationType.setName("#AnonType_" + 
SchemaSymbols.ELT_DOCUMENTATION);
             documentationType.setIsAnonymous();
             
             appinfoType.setValues("#AnonType_" + SchemaSymbols.ELT_APPINFO, 
fTargetNamespace, anyType,
                     XSConstants.DERIVATION_RESTRICTION, 
XSConstants.DERIVATION_NONE, (short) (XSConstants.DERIVATION_EXTENSION | 
XSConstants.DERIVATION_RESTRICTION),
-                    XSComplexTypeDecl.CONTENTTYPE_MIXED, false, appinfoAttrs, 
null, anyWCSequenceParticle, new XSObjectListImpl(null, 0), null);
+                    XSComplexTypeDecl.CONTENTTYPE_MIXED, false, appinfoAttrs, 
null, anyWCSequenceParticle, XSObjectListImpl.EMPTY_LIST, null);
             appinfoType.setName("#AnonType_" + SchemaSymbols.ELT_APPINFO);
             appinfoType.setIsAnonymous();
             



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to