commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r810243 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/DefaultTransformer.java
Date Tue, 01 Sep 2009 21:14:36 GMT
Author: luc
Date: Tue Sep  1 21:14:35 2009
New Revision: 810243

URL: http://svn.apache.org/viewvc?rev=810243&view=rev
Log:
replaced a catch for Exception by a catch for NumberFormatException

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/DefaultTransformer.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/DefaultTransformer.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/DefaultTransformer.java?rev=810243&r1=810242&r2=810243&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/DefaultTransformer.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/util/DefaultTransformer.java
Tue Sep  1 21:14:35 2009
@@ -53,7 +53,7 @@
             
         try {
             return Double.valueOf(o.toString()).doubleValue();
-        } catch (Exception e) {
+        } catch (NumberFormatException e) {
             throw new MathException(e,
                                     "Conversion Exception in Transformation: {0}", e.getMessage());
         }



Mime
View raw message