jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1720208 - /jmeter/trunk/src/core/org/apache/jmeter/report/config/Converters.java
Date Tue, 15 Dec 2015 18:08:51 GMT
Author: fschumacher
Date: Tue Dec 15 18:08:51 2015
New Revision: 1720208

URL: http://svn.apache.org/viewvc?rev=1720208&view=rev
Log:
Keep exception cause. No need to declare throwing an exception on this non derivable class.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/config/Converters.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/config/Converters.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/config/Converters.java?rev=1720208&r1=1720207&r2=1720208&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/config/Converters.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/config/Converters.java Tue Dec 15 18:08:51
2015
@@ -38,7 +38,7 @@ public final class Converters {
                 try {
                     return Double.valueOf(value);
                 } catch (NumberFormatException ex) {
-                    throw new ConvertException(value, Double.class.getName());
+                    throw new ConvertException(value, Double.class.getName(), ex);
                 }
             }
         };
@@ -52,7 +52,7 @@ public final class Converters {
                 try {
                     return Long.valueOf(value);
                 } catch (NumberFormatException ex) {
-                    throw new ConvertException(value, Long.class.getName());
+                    throw new ConvertException(value, Long.class.getName(), ex);
                 }
             }
         };
@@ -62,7 +62,7 @@ public final class Converters {
         StringConverter<Boolean> booleanConverter = new StringConverter<Boolean>()
{
 
             @Override
-            public Boolean convert(String value) throws ConvertException {
+            public Boolean convert(String value) {
                 return Boolean.valueOf(value);
             }
         };



Mime
View raw message