jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1719976 - /jmeter/trunk/src/core/org/apache/jmeter/report/core/Sample.java
Date Mon, 14 Dec 2015 17:54:34 GMT
Author: sebb
Date: Mon Dec 14 17:54:33 2015
New Revision: 1719976

URL: http://svn.apache.org/viewvc?rev=1719976&view=rev
Log:
Only used as a Double, so change the return type

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/core/Sample.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/core/Sample.java?rev=1719976&r1=1719975&r2=1719976&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/core/Sample.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/core/Sample.java Mon Dec 14 17:54:33 2015
@@ -203,9 +203,9 @@ public class Sample {
      * @throws NumberFormatException
      *             if the data could not be parsed as a double
      */
-    public double getDouble(String name) {
+    public Double getDouble(String name) {
         try {
-            return Double.parseDouble(data[metadata.indexOf(name)]);
+            return Double.valueOf(data[metadata.indexOf(name)]);
         } catch (NumberFormatException ex) {
             throw new SampleException("Error on sample #" + row, ex);
         }



Mime
View raw message