jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1728531 - /jmeter/trunk/src/core/org/apache/jmeter/report/core/Converters.java
Date Thu, 04 Feb 2016 18:58:01 GMT
Author: fschumacher
Date: Thu Feb  4 18:58:01 2016
New Revision: 1728531

URL: http://svn.apache.org/viewvc?rev=1728531&view=rev
Log:
Use correct types for ConvertExceptions.

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/core/Converters.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/core/Converters.java?rev=1728531&r1=1728530&r2=1728531&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/core/Converters.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/core/Converters.java Thu Feb  4 18:58:01
2016
@@ -38,7 +38,7 @@ public final class Converters {
                 try {
                     return Character.valueOf(value.charAt(0));
                 } catch (NumberFormatException ex) {
-                    throw new ConvertException(value, Double.class.getName(),
+                    throw new ConvertException(value, Character.class.getName(),
                             ex);
                 }
             }
@@ -68,7 +68,7 @@ public final class Converters {
                 try {
                     return Float.valueOf(value);
                 } catch (NumberFormatException ex) {
-                    throw new ConvertException(value, Double.class.getName(),
+                    throw new ConvertException(value, Float.class.getName(),
                             ex);
                 }
             }
@@ -83,7 +83,7 @@ public final class Converters {
                 try {
                     return Integer.valueOf(value);
                 } catch (NumberFormatException ex) {
-                    throw new ConvertException(value, Double.class.getName(),
+                    throw new ConvertException(value, Integer.class.getName(),
                             ex);
                 }
             }



Mime
View raw message