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 2009/05/25 16:49:00 UTC
svn commit: r778434 -
/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/ValidatedInfo.java
Author: mrglavas
Date: Mon May 25 14:48:58 2009
New Revision: 778434
URL: http://svn.apache.org/viewvc?rev=778434&view=rev
Log:
Fixing reset(). We weren't re-initializing all of the fields.
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/ValidatedInfo.java
Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/ValidatedInfo.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/ValidatedInfo.java?rev=778434&r1=778433&r2=778434&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/ValidatedInfo.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/dv/ValidatedInfo.java Mon May 25 14:48:58 2009
@@ -80,8 +80,10 @@
public void reset() {
this.normalizedValue = null;
this.actualValue = null;
+ this.actualValueType = XSConstants.UNAVAILABLE_DT;
this.memberType = null;
this.memberTypes = null;
+ this.itemValueTypes = null;
}
/**
@@ -89,10 +91,12 @@
* value, use toString; otherwise, use the normalized value.
*/
public String stringValue() {
- if (actualValue == null)
+ if (actualValue == null) {
return normalizedValue;
- else
+ }
+ else {
return actualValue.toString();
+ }
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org