sdeboy      2005/02/17 23:12:53

  Modified:    src/java/org/apache/log4j/xml XMLDecoder.java
  Log:
  Don't trim the xml fragment string in decodeEvents(String) (it might be a 
partial fragment), but don't process the if the line is just white space.
  
  Revision  Changes    Path
  1.25      +1 -2      
logging-log4j/src/java/org/apache/log4j/xml/XMLDecoder.java
  
  Index: XMLDecoder.java
  ===================================================================
  RCS file: 
/home/cvs/logging-log4j/src/java/org/apache/log4j/xml/XMLDecoder.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- XMLDecoder.java   24 Nov 2004 08:17:02 -0000      1.24
  +++ XMLDecoder.java   18 Feb 2005 07:12:53 -0000      1.25
  @@ -181,8 +181,7 @@
   
     public Vector decodeEvents(String document) {
       if (document != null) {
  -      document = document.trim();
  -      if (document.equals("")) {
  +      if (document.trim().equals("")) {
           return null;
         }
                String newDoc=null;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to