Author: mrglavas
Date: Tue May 20 14:51:13 2008
New Revision: 658455

URL: http://svn.apache.org/viewvc?rev=658455&view=rev
Log:
Fixing JIRA Issue #1309:
http://issues.apache.org/jira/browse/XERCESJ-1309

For xs:anyType return an empty XSObjectList instead of null from 
XSComplexTypeDefinition.getAnnotations().
Also changed getAttributeUses() so that it returns a singleton instance of the 
XSObjectList instead of
creating a new one every time.

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=658455&r1=658454&r2=658455&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 May 20 14:51:13 2008
@@ -889,7 +889,7 @@
         }
 
         public XSObjectList getAttributeUses() {
-            return new XSObjectListImpl(null, 0);
+            return XSObjectListImpl.EMPTY_LIST;
         }
 
         public XSAttributeGroupDecl getAttrGrp() {
@@ -932,7 +932,7 @@
         }
 
         public XSObjectList getAnnotations() {
-            return null;
+            return XSObjectListImpl.EMPTY_LIST;
         }
         
         public XSNamespaceItem getNamespaceItem() {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to