jakarta-jcs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asm...@apache.org
Subject svn commit: r783801 - /jakarta/jcs/trunk/src/java/org/apache/jcs/utils/struct/DoubleLinkedList.java
Date Thu, 11 Jun 2009 14:42:27 GMT
Author: asmuts
Date: Thu Jun 11 14:42:27 2009
New Revision: 783801

URL: http://svn.apache.org/viewvc?rev=783801&view=rev
Log:
cleanup

Modified:
    jakarta/jcs/trunk/src/java/org/apache/jcs/utils/struct/DoubleLinkedList.java

Modified: jakarta/jcs/trunk/src/java/org/apache/jcs/utils/struct/DoubleLinkedList.java
URL: http://svn.apache.org/viewvc/jakarta/jcs/trunk/src/java/org/apache/jcs/utils/struct/DoubleLinkedList.java?rev=783801&r1=783800&r2=783801&view=diff
==============================================================================
--- jakarta/jcs/trunk/src/java/org/apache/jcs/utils/struct/DoubleLinkedList.java (original)
+++ jakarta/jcs/trunk/src/java/org/apache/jcs/utils/struct/DoubleLinkedList.java Thu Jun 11
14:42:27 2009
@@ -173,7 +173,7 @@
             // first
             first = last;
         }
-        
+
         if ( last != null )
         {
             last.next = ln;
@@ -291,10 +291,13 @@
      */
     public synchronized void debugDumpEntries()
     {
-        log.debug( "dumping Entries" );
-        for ( DoubleLinkedListNode me = first; me != null; me = me.next )
+        if ( log.isDebugEnabled() )
         {
-            log.debug( "dump Entries> payload= '" + me.getPayload() + "'" );
+            log.debug( "dumping Entries" );
+            for ( DoubleLinkedListNode me = first; me != null; me = me.next )
+            {
+                log.debug( "dump Entries> payload= '" + me.getPayload() + "'" );
+            }
         }
     }
 }



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


Mime
View raw message