directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r263920 - /directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/grammar/AbstractGrammar.java
Date Sun, 28 Aug 2005 21:00:30 GMT
Author: elecharny
Date: Sun Aug 28 14:00:27 2005
New Revision: 263920

URL: http://svn.apache.org/viewcvs?rev=263920&view=rev
Log:
- Supressed the DEBUG member and replaced it by log.isDebugEnabled

Modified:
    directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/grammar/AbstractGrammar.java

Modified: directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/grammar/AbstractGrammar.java
URL: http://svn.apache.org/viewcvs/directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/grammar/AbstractGrammar.java?rev=263920&r1=263919&r2=263920&view=diff
==============================================================================
--- directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/grammar/AbstractGrammar.java
(original)
+++ directory/asn1/branches/asn1-new-ber/ber-new/src/java/main/org/apache/asn1new/ber/grammar/AbstractGrammar.java
Sun Aug 28 14:00:27 2005
@@ -40,9 +40,6 @@
     /** The logger */
     private static final Logger log = LoggerFactory.getLogger( AbstractGrammar.class );
 
-    /** Logging speed up  */
-    private static final boolean DEBUG = log.isDebugEnabled();
-
     //~ Instance fields ----------------------------------------------------------------------------
 
     /** Table of transitions. It's a two dimension array, the first dimension
@@ -95,7 +92,7 @@
 
         int tlvLength      = tlv.getSize();
 
-        if ( DEBUG )
+        if ( log.isDebugEnabled() )
         {
             log.debug(
                 "Expected Length = " + ( ( Asn1Object ) object ).getExpectedLength() +
@@ -179,7 +176,7 @@
                 }
             }
 
-            if ( DEBUG )
+            if ( log.isDebugEnabled() )
             {
                 log.debug( transition.toString( container.getCurrentGrammarType(),
                         currentGrammar.getStatesEnum() ) );
@@ -191,7 +188,7 @@
                     ( nextState != IStates.END_STATE ) )
             {
 
-                if ( DEBUG )
+                if ( log.isDebugEnabled() )
                 {
                     log.debug(
                         "Switching from grammar " +



Mime
View raw message