Author: mrglavas
Date: Tue May 20 14:50:48 2008
New Revision: 658453
URL: http://svn.apache.org/viewvc?rev=658453&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/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java
Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java?rev=658453&r1=658452&r2=658453&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/SchemaGrammar.java Tue May
20 14:50:48 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]