commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Rall <...@finemaltcoding.com>
Subject [DIGESTER] Removed unnecessary local variable "debug"
Date Tue, 29 Jul 2003 05:57:44 GMT
This patch is against the DIGESTER_1_5 CVS tag.

* src/java/org/apache/commons/digester/Digester.java
  resolveEntity(): Removed unnecessary local variable "debug".

Index: Digester.java
===================================================================
RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/Digester.java,v
retrieving revision 1.76
diff -u -u -r1.76 Digester.java
--- Digester.java	25 Apr 2003 10:24:08 -0000	1.76
+++ Digester.java	29 Jul 2003 05:55:12 -0000
@@ -1386,8 +1386,6 @@
       public InputSource resolveEntity(String publicId, String systemId)
             throws SAXException {     
                 
-        boolean debug = log.isDebugEnabled();
-        
         if (saxLog.isDebugEnabled()) {
             saxLog.debug("resolveEntity('" + publicId + "', '" + systemId + "')");
         }
@@ -1411,7 +1409,7 @@
         }
         
         // Return an input source to our alternative URL
-        if (debug) {
+        if (log.isDebugEnabled()) {
             log.debug(" Resolving to alternate DTD '" + entityURL + "'");
         }  
         

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message