jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1381374 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/DistributionGraphVisualizer.java
Date Wed, 05 Sep 2012 21:15:29 GMT
Author: pmouawad
Date: Wed Sep  5 21:15:29 2012
New Revision: 1381374

URL: http://svn.apache.org/viewvc?rev=1381374&view=rev
Log:
Make fields final
Make field constant

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

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/DistributionGraphVisualizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/DistributionGraphVisualizer.java?rev=1381374&r1=1381373&r2=1381374&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/DistributionGraphVisualizer.java
(original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/DistributionGraphVisualizer.java
Wed Sep  5 21:15:29 2012
@@ -50,15 +50,15 @@ public class DistributionGraphVisualizer
         Clearable {
     private static final long serialVersionUID = 240L;
 
-    private SamplingStatCalculator model;
+    private final SamplingStatCalculator model;
 
     private JPanel graphPanel = null;
 
-    private DistributionGraph graph;
+    private final DistributionGraph graph;
 
     private JTextField noteField;
 
-    private int delay = 10;
+    private static final int DELAY = 10;
 
     private int counter = 0;
 
@@ -95,7 +95,7 @@ public class DistributionGraphVisualizer
 
     public synchronized void updateGui(Sample s) {
         // We have received one more sample
-        if (delay == counter) {
+        if (DELAY == counter) {
             updateGui();
             counter = 0;
         } else {



Mime
View raw message