jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1860520 - /jmeter/trunk/src/core/org/apache/jmeter/util/XPathUtil.java
Date Sun, 02 Jun 2019 12:37:08 GMT
Author: pmouawad
Date: Sun Jun  2 12:37:08 2019
New Revision: 1860520

URL: http://svn.apache.org/viewvc?rev=1860520&view=rev
Log:
Fix javadoc
Fix Sonar false positive on Exception handling

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=1860520&r1=1860519&r2=1860520&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/XPathUtil.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/XPathUtil.java Sun Jun  2 12:37:08 2019
@@ -591,6 +591,7 @@ public class XPathUtil {
     /**
      * 
      * @param document XML Document
+     * @param namespaces String series of prefix/namespace values separateur by line break
      * @return {@link PrefixResolver}
      */
     private static PrefixResolver getPrefixResolverForXPath2(Document document,String namespaces)
{
@@ -719,7 +720,7 @@ public class XPathUtil {
                    result.setFailure(isNegated ? resultOfEval : !resultOfEval);
                    result.setFailureMessage(
                            isNegated ? "Nodes Matched for " + xPathQuery : "No Nodes Matched
for " + xPathQuery);
-               } catch (ParserConfigurationException | TransformerException e) {
+               } catch (ParserConfigurationException | TransformerException e) { // NOSONAR
Exception handled by return
                    result.setError(true);
                    result.setFailureMessage(new StringBuilder("Exception: ").append(e.getMessage()).append("
for:")
                            .append(xPathQuery).toString());



Mime
View raw message