jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1783946 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphVisualizer.java
Date Tue, 21 Feb 2017 21:31:58 GMT
Author: fschumacher
Date: Tue Feb 21 21:31:58 2017
New Revision: 1783946

URL: http://svn.apache.org/viewvc?rev=1783946&view=rev
Log:
Move field matcher inside the only function, where it is used.

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

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphVisualizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphVisualizer.java?rev=1783946&r1=1783945&r2=1783946&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphVisualizer.java
(original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphVisualizer.java
Tue Feb 21 21:31:58 2017
@@ -277,8 +277,6 @@ public class RespTimeGraphVisualizer ext
 
     private Pattern pattern = null;
 
-    private transient Matcher matcher = null;
-
     private final List<Color> listColors = Colors.getColors();
 
     private final List<RespTimeGraphDataBean> internalList = new ArrayList<>();
// internal list of all results
@@ -295,6 +293,8 @@ public class RespTimeGraphVisualizer ext
             internalList.add(new RespTimeGraphDataBean(sampleResult.getStartTime(), sampleResult.getTime(),
sampleLabel));
         }
 
+        Matcher matcher = null;
+
         // Sampler selection
         if (samplerSelection.isSelected() && pattern != null) {
             matcher = pattern.matcher(sampleLabel);
@@ -548,7 +548,6 @@ public class RespTimeGraphVisualizer ext
                 pattern = createPattern(samplerMatchLabel.getText());
             } else if (forceReloadData) {
                 pattern = null;
-                matcher = null;
             }
             if (getFile() != null && getFile().length() > 0) {
                 // Reload data from file



Mime
View raw message