jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1753325 - /jmeter/trunk/src/functions/org/apache/jmeter/functions/XPathFileContainer.java
Date Mon, 18 Jul 2016 23:24:16 GMT
Author: sebb
Date: Mon Jul 18 23:24:16 2016
New Revision: 1753325

URL: http://svn.apache.org/viewvc?rev=1753325&view=rev
Log:
No need to store the xpath value as an instance field

Modified:
    jmeter/trunk/src/functions/org/apache/jmeter/functions/XPathFileContainer.java

Modified: jmeter/trunk/src/functions/org/apache/jmeter/functions/XPathFileContainer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/functions/org/apache/jmeter/functions/XPathFileContainer.java?rev=1753325&r1=1753324&r2=1753325&view=diff
==============================================================================
--- jmeter/trunk/src/functions/org/apache/jmeter/functions/XPathFileContainer.java (original)
+++ jmeter/trunk/src/functions/org/apache/jmeter/functions/XPathFileContainer.java Mon Jul
18 23:24:16 2016
@@ -50,8 +50,6 @@ public class XPathFileContainer {
 
     private final String fileName; // name of the file
 
-    private final String xpath;
-
     /** Keeping track of which row is next to be read. */
     private int nextRow;// probably does not need to be synch (always accessed through ThreadLocal?)
     int getNextRow(){// give access to Test code
@@ -64,12 +62,11 @@ public class XPathFileContainer {
             log.debug("XPath(" + file + ") xpath " + xpath);
         }
         fileName = file;
-        this.xpath = xpath;
         nextRow = 0;
-        nodeList=load();
+        nodeList=load(xpath);
     }
 
-    private NodeList load() throws IOException, FileNotFoundException, ParserConfigurationException,
SAXException,
+    private NodeList load(String xpath) throws IOException, FileNotFoundException, ParserConfigurationException,
SAXException,
             TransformerException {
         InputStream fis = null;
         NodeList nl = null;



Mime
View raw message