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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to