jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1719962 - /jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java
Date Mon, 14 Dec 2015 17:15:55 GMT
Author: sebb
Date: Mon Dec 14 17:15:54 2015
New Revision: 1719962

URL: http://svn.apache.org/viewvc?rev=1719962&view=rev
Log:
Use correct method to avoid unnecessary unbox

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java?rev=1719962&r1=1719961&r2=1719962&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java Mon
Dec 14 17:15:54 2015
@@ -107,7 +107,7 @@ public class HtmlTemplateExporter extend
 
     private long formatTimestamp(String key, DataContext context) {
         // FIXME Why convert to double then long (rounding ?)
-        double result = Double.valueOf((String) context.get(key));
+        double result = Double.parseDouble((String) context.get(key));
         long timestamp = (long) result;
         // Quote the string to respect Json spec.
         context.put(key, '"' + TimeHelper.formatTimeStamp(timestamp) + '"');



Mime
View raw message