jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1817696 - /jmeter/trunk/src/components/org/apache/jmeter/extractor/BoundaryExtractor.java
Date Sun, 10 Dec 2017 11:12:20 GMT
Author: fschumacher
Date: Sun Dec 10 11:12:20 2017
New Revision: 1817696

URL: http://svn.apache.org/viewvc?rev=1817696&view=rev
Log:
Use StringUtils#isAnyEmpty to make intent of code clearer

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/extractor/BoundaryExtractor.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/extractor/BoundaryExtractor.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/extractor/BoundaryExtractor.java?rev=1817696&r1=1817695&r2=1817696&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/extractor/BoundaryExtractor.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/extractor/BoundaryExtractor.java Sun Dec
10 11:12:20 2017
@@ -97,10 +97,7 @@ public class BoundaryExtractor extends A
         if(log.isDebugEnabled()) {
             log.debug("Boundary Extractor {}: processing result", getName());
         }
-        if(StringUtils.isEmpty(getLeftBoundary()) ||
-                StringUtils.isEmpty(getRightBoundary()) ||
-                StringUtils.isEmpty(getRefName())
-                ) {
+        if(StringUtils.isAnyEmpty(getLeftBoundary(), getRightBoundary(), getRefName())) {
             throw new IllegalArgumentException("One of the mandatory properties is missing
in Boundary Extractor:"+
                 getName());
         }



Mime
View raw message