You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2008/05/20 23:51:13 UTC

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

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: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org