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/11/18 05:43:47 UTC
svn commit: r718481 - in
/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs:
AttributePSVImpl.java ElementPSVImpl.java
Author: mrglavas
Date: Mon Nov 17 20:43:47 2008
New Revision: 718481
URL: http://svn.apache.org/viewvc?rev=718481&view=rev
Log:
Fixing a bug. ItemPSVI is supposed to return "an empty StringList if no
errors occurred during the validation attempt". It was returning null.
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/AttributePSVImpl.java
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/ElementPSVImpl.java
Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/AttributePSVImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/AttributePSVImpl.java?rev=718481&r1=718480&r2=718481&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/AttributePSVImpl.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/AttributePSVImpl.java Mon Nov 17 20:43:47 2008
@@ -137,8 +137,9 @@
* @return list of error codes
*/
public StringList getErrorCodes() {
- if (fErrorCodes == null)
- return null;
+ if (fErrorCodes == null) {
+ return StringListImpl.EMPTY_LIST;
+ }
return new StringListImpl(fErrorCodes, fErrorCodes.length);
}
Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/ElementPSVImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/ElementPSVImpl.java?rev=718481&r1=718480&r2=718481&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/ElementPSVImpl.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/ElementPSVImpl.java Mon Nov 17 20:43:47 2008
@@ -157,8 +157,9 @@
* @return Array of error codes
*/
public StringList getErrorCodes() {
- if (fErrorCodes == null)
- return null;
+ if (fErrorCodes == null) {
+ return StringListImpl.EMPTY_LIST;
+ }
return new StringListImpl(fErrorCodes, fErrorCodes.length);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org