commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1142283 - /commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/CallMethodRule.java
Date Sat, 02 Jul 2011 19:50:58 GMT
Author: simonetripodi
Date: Sat Jul  2 19:50:58 2011
New Revision: 1142283

URL: http://svn.apache.org/viewvc?rev=1142283&view=rev
Log:
no needs to log the error and rise the exception, just throw the runtime error

Modified:
    commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/CallMethodRule.java

Modified: commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/CallMethodRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/CallMethodRule.java?rev=1142283&r1=1142282&r2=1142283&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/CallMethodRule.java
(original)
+++ commons/proper/digester/trunk/src/main/java/org/apache/commons/digester3/CallMethodRule.java
Sat Jul  2 19:50:58 2011
@@ -331,11 +331,8 @@ public class CallMethodRule
                 }
                 catch ( ClassNotFoundException e )
                 {
-                    String errorMessage = format( "[CallMethodRule] Cannot load class %s
at position %s",
-                                                  this.paramClassNames[i], i );
-                    // use the digester log
-                    digester.getLogger().error( errorMessage, e );
-                    throw new RuntimeException( errorMessage, e );
+                    throw new RuntimeException( format( "[CallMethodRule] Cannot load class
%s at position %s",
+                                                        this.paramClassNames[i], i ), e );
                 }
             }
         }



Mime
View raw message