commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1129356 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/PluginCreateRule.java
Date Mon, 30 May 2011 20:37:53 GMT
Author: simonetripodi
Date: Mon May 30 20:37:53 2011
New Revision: 1129356

URL: http://svn.apache.org/viewvc?rev=1129356&view=rev
Log:
logging moved outside the catch

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/PluginCreateRule.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/PluginCreateRule.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/PluginCreateRule.java?rev=1129356&r1=1129355&r2=1129356&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/PluginCreateRule.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/plugins/PluginCreateRule.java
Mon May 30 20:37:53 2011
@@ -524,12 +524,12 @@ public class PluginCreateRule
             boolean debug = log.isDebugEnabled();
             for ( Rule rule : rules )
             {
+                if ( debug )
+                {
+                    log.debug( "  Fire begin() for " + rule );
+                }
                 try
                 {
-                    if ( debug )
-                    {
-                        log.debug( "  Fire begin() for " + rule );
-                    }
                     rule.begin( namespace, name, list );
                 }
                 catch ( Exception e )
@@ -566,12 +566,12 @@ public class PluginCreateRule
             boolean debug = log.isDebugEnabled();
             for ( Rule rule : rules )
             {
+                if ( debug )
+                {
+                    log.debug( "  Fire body() for " + rule );
+                }
                 try
                 {
-                    if ( debug )
-                    {
-                        log.debug( "  Fire body() for " + rule );
-                    }
                     rule.body( namespaceURI, name, text );
                 }
                 catch ( Exception e )
@@ -608,13 +608,13 @@ public class PluginCreateRule
             for ( int i = 0; i < rules.size(); i++ )
             {
                 int j = ( rules.size() - i ) - 1;
+                Rule rule = rules.get( j );
+                if ( debug )
+                {
+                    log.debug( "  Fire end() for " + rule );
+                }
                 try
                 {
-                    Rule rule = rules.get( j );
-                    if ( debug )
-                    {
-                        log.debug( "  Fire end() for " + rule );
-                    }
                     rule.end( namespaceURI, name );
                 }
                 catch ( Exception e )



Mime
View raw message