jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1859460 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatVisualizer.java
Date Sat, 18 May 2019 10:29:26 GMT
Author: fschumacher
Date: Sat May 18 10:29:25 2019
New Revision: 1859460

URL: http://svn.apache.org/viewvc?rev=1859460&view=rev
Log:
Move private fields to method local variables.

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

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatVisualizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatVisualizer.java?rev=1859460&r1=1859459&r2=1859460&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatVisualizer.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/StatVisualizer.java Sat May
18 10:29:25 2019
@@ -61,7 +61,7 @@ import org.apache.jorphan.gui.RendererUt
 @GUIMenuSortOrder(3)
 public class StatVisualizer extends AbstractVisualizer implements Clearable, ActionListener
{
 
-    private static final long serialVersionUID = 241L;
+    private static final long serialVersionUID = 242L;
 
     private static final String USE_GROUP_NAME = "useGroupName"; //$NON-NLS-1$
     private static final String SAVE_HEADERS = "saveHeaders"; //$NON-NLS-1$
@@ -69,9 +69,6 @@ public class StatVisualizer extends Abst
             .getResString("aggregate_report_total_label"); //$NON-NLS-1$
     private static final int REFRESH_PERIOD = JMeterUtils.getPropDefault("jmeter.gui.refresh_period",
500); // $NON-NLS-1$
 
-    private JTable myJTable;
-    private JScrollPane myScrollPane;
-
     private final JButton saveTable = new JButton(
             JMeterUtils.getResString("aggregate_graph_save_table")); //$NON-NLS-1$
 
@@ -165,13 +162,13 @@ public class StatVisualizer extends Abst
 
         mainPanel.add(makeTitlePanel());
 
-        myJTable = new JTable(model);
+        JTable myJTable = new JTable(model);
         myJTable.setRowSorter(new ObjectTableSorter(model).fixLastRow());
         JMeterUtils.applyHiDPI(myJTable);
         HeaderAsPropertyRendererWrapper.setupDefaultRenderer(myJTable, StatGraphVisualizer.getColumnsMsgParameters());
         myJTable.setPreferredScrollableViewportSize(new Dimension(500, 70));
         RendererUtils.applyRenderers(myJTable, StatGraphVisualizer.getRenderers());
-        myScrollPane = new JScrollPane(myJTable);
+        JScrollPane myScrollPane = new JScrollPane(myJTable);
         this.add(mainPanel, BorderLayout.NORTH);
         this.add(myScrollPane, BorderLayout.CENTER);
         saveTable.addActionListener(this);



Mime
View raw message