avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon/src/java/org/apache/avalon/framework/configuration SAXConfigurationHandler.java
Date Tue, 30 Apr 2002 14:00:34 GMT
donaldp     02/04/30 07:00:34

  Modified:    src/java/org/apache/avalon/framework/configuration
                        SAXConfigurationHandler.java
  Log:
  Avoided wierd behaviour wrt internal whitespace aka content of elements.
  
  Submitted by: Laura Dean <laura_dean@oryxa.com>
  
  Revision  Changes    Path
  1.15      +7 -1      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.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- SAXConfigurationHandler.java	21 Mar 2002 14:51:13 -0000	1.14
  +++ SAXConfigurationHandler.java	30 Apr 2002 14:00:34 -0000	1.15
  @@ -69,7 +69,7 @@
       public void characters( final char[] ch, int start, int end )
           throws SAXException
       {
  -        String value = (new String( ch, start, end )).trim();
  +        String value = new String( ch, start, end );
   
           if( value.equals( "" ) )
           {
  @@ -109,6 +109,12 @@
           if( 0 == location )
           {
               m_configuration = (Configuration)object;
  +            final String value = m_configuration.getValue( null );
  +	    if( null != value )
  +	    {
  +		((DefaultConfiguration)m_configuration).setValue( value.trim() );
  +	    }
  +
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message