jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1347105 - /jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java
Date Wed, 06 Jun 2012 20:39:16 GMT
Author: pmouawad
Date: Wed Jun  6 20:39:16 2012
New Revision: 1347105

URL: http://svn.apache.org/viewvc?rev=1347105&view=rev
Log:
DecimalFormat is not thread-safe, so remove static instance

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java?rev=1347105&r1=1347104&r2=1347105&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java Wed Jun  6 20:39:16
2012
@@ -38,9 +38,9 @@ import org.apache.jmeter.samplers.Sample
  */
 public class RunningSample {
 
-    private static final DecimalFormat rateFormatter = new DecimalFormat("#.0"); // $NON-NLS-1$
+    private final DecimalFormat rateFormatter = new DecimalFormat("#.0"); // $NON-NLS-1$
 
-    private static final DecimalFormat errorFormatter = new DecimalFormat("#0.00%"); // $NON-NLS-1$
+    private final DecimalFormat errorFormatter = new DecimalFormat("#0.00%"); // $NON-NLS-1$
 
     private long counter;
 



Mime
View raw message