jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1774968 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java
Date Sun, 18 Dec 2016 21:43:43 GMT
Author: pmouawad
Date: Sun Dec 18 21:43:43 2016
New Revision: 1774968

URL: http://svn.apache.org/viewvc?rev=1774968&view=rev
Log:
Fix sonar warning

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java?rev=1774968&r1=1774967&r2=1774968&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphChart.java Sun
Dec 18 21:43:43 2016
@@ -378,7 +378,7 @@ public class RespTimeGraphChart extends
             divValueStr.append("0"); //$NON-NLS-1$
         }
         int divValueInt = Integer.parseInt(divValueStr.toString());
-        BigDecimal round = new BigDecimal(value / divValueInt);
+        BigDecimal round = BigDecimal.valueOf(value / divValueInt);
         round = round.setScale(0, roundMode);
         int topValue = round.intValue() * divValueInt;
         return topValue;



Mime
View raw message