tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/util/xml XmlMapper.java
Date Wed, 23 May 2001 22:19:52 GMT
craigmcc    01/05/23 15:19:52

  Modified:    catalina/src/share/org/apache/catalina/util/xml
                        XmlMapper.java
  Log:
  Do not print double debug messages when processing a method setter that
  declares zero arguments (and thus takes its method argument from the
  nested body of the current tag).
  
  PR: Patch #4 of the "8 Patches" email on 23 May 2001
  Submitted by: Peter Costello <peterwcostello@yahoo.com>
  
  Revision  Changes    Path
  1.6       +2 -2      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/util/xml/XmlMapper.java
  
  Index: XmlMapper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/util/xml/XmlMapper.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XmlMapper.java	2000/11/24 22:36:25	1.5
  +++ XmlMapper.java	2001/05/23 22:19:49	1.6
  @@ -873,7 +873,7 @@
   	}
   	m.invoke( parent, realParam );
   
  -	if(ctx.getDebug() > 0 ) {
  +	if  ((ctx.getDebug() > 0) && (paramC > 0)) {
   	    // debug
   	    StringBuffer sb=new StringBuffer();
   	    sb.append("" + parent.getClass().getName() + "." + mName + "( " );
  @@ -882,7 +882,7 @@
   		sb.append(params[i]);
   	    }
   	    sb.append(")");
  -	    if( ctx.getDebug() > 0 ) ctx.log(sb.toString());
  +	    ctx.log(sb.toString());
   	}
       }
   }
  
  
  

Mime
View raw message