jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1783652 - /jmeter/trunk/src/core/org/apache/jmeter/util/XPathUtil.java
Date Sun, 19 Feb 2017 15:43:52 GMT
Author: fschumacher
Date: Sun Feb 19 15:43:52 2017
New Revision: 1783652

URL: http://svn.apache.org/viewvc?rev=1783652&view=rev
Log:
Immediately return value instead of creating a temp var.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/XPathUtil.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/util/XPathUtil.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/XPathUtil.java?rev=1783652&r1=1783651&r2=1783652&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/XPathUtil.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/XPathUtil.java Sun Feb 19 15:43:52 2017
@@ -380,9 +380,7 @@ public class XPathUtil {
      * @return {@link PrefixResolver}
      */
     private static PrefixResolver getPrefixResolver(Document document) {
-        PropertiesBasedPrefixResolver propertiesBasedPrefixResolver =
-                new PropertiesBasedPrefixResolver(document.getDocumentElement());
-        return propertiesBasedPrefixResolver;
+        return new PropertiesBasedPrefixResolver(document.getDocumentElement());
     }
 
     /**



Mime
View raw message