Author: mrglavas
Date: Mon May 25 14:49:58 2009
New Revision: 778435
URL: http://svn.apache.org/viewvc?rev=778435&view=rev
Log:
Be consistent with the rest of the XML Schema API by returning an empty list
instead of null.
Modified:
xerces/java/trunk/src/org/apache/xerces/impl/xs/ElementPSVImpl.java
Modified: xerces/java/trunk/src/org/apache/xerces/impl/xs/ElementPSVImpl.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/xs/ElementPSVImpl.java?rev=778435&r1=778434&r2=778435&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/impl/xs/ElementPSVImpl.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/impl/xs/ElementPSVImpl.java Mon May
25 14:49:58 2009
@@ -17,6 +17,7 @@
package org.apache.xerces.impl.xs;
+import org.apache.xerces.impl.xs.util.ShortListImpl;
import org.apache.xerces.impl.xs.util.StringListImpl;
import org.apache.xerces.xs.ElementPSVI;
import org.apache.xerces.xs.ShortList;
@@ -262,7 +263,7 @@
* @see org.apache.xerces.xs.ItemPSVI#getItemValueTypes()
*/
public ShortList getItemValueTypes() {
- return this.fItemValueTypes;
+ return this.fItemValueTypes != null ? this.fItemValueTypes :
ShortListImpl.EMPTY_LIST;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]