You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by pr...@apache.org on 2002/05/23 17:58:26 UTC
cvs commit: jakarta-avalon/src/java/org/apache/avalon/framework/configuration SAXConfigurationHandler.java
proyal 02/05/23 08:58:26
Modified: src/java/org/apache/avalon/framework/configuration
SAXConfigurationHandler.java
Log:
Restoring previous behavior. Empty elements should return a null value rather
than an empty string.
Revision Changes Path
1.20 +4 -0 jakarta-avalon/src/java/org/apache/avalon/framework/configuration/SAXConfigurationHandler.java
Index: SAXConfigurationHandler.java
===================================================================
RCS file: /home/cvs/jakarta-avalon/src/java/org/apache/avalon/framework/configuration/SAXConfigurationHandler.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- SAXConfigurationHandler.java 20 May 2002 12:05:29 -0000 1.19
+++ SAXConfigurationHandler.java 23 May 2002 15:58:26 -0000 1.20
@@ -118,6 +118,10 @@
{
finishedValue = accumulatedValue;
}
+ else if( 0 == accumulatedValue.length() )
+ {
+ finishedValue = null;
+ }
else
{
finishedValue = accumulatedValue.trim();
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>