jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380348 - /jmeter/trunk/src/core/org/apache/jmeter/config/Argument.java
Date Mon, 03 Sep 2012 20:38:56 GMT
Author: pmouawad
Date: Mon Sep  3 20:38:56 2012
New Revision: 1380348

URL: http://svn.apache.org/viewvc?rev=1380348&view=rev
Log:
Use JOrphanUtils#isBlank

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/config/Argument.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/config/Argument.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/config/Argument.java?rev=1380348&r1=1380347&r2=1380348&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/config/Argument.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/config/Argument.java Mon Sep  3 20:38:56 2012
@@ -22,6 +22,7 @@ import java.io.Serializable;
 
 import org.apache.jmeter.testelement.AbstractTestElement;
 import org.apache.jmeter.testelement.property.StringProperty;
+import org.apache.jorphan.util.JOrphanUtils;
 
 /**
  * Class representing an argument. Each argument consists of a name/value pair,
@@ -190,7 +191,7 @@ public class Argument extends AbstractTe
      * @return true if parameter should be skipped
      */
     public boolean isSkippable(String parameterName) {
-        if (parameterName.trim().length()==0){
+        if (JOrphanUtils.isBlank(parameterName)){
             return true; // Skip parameters with a blank name (allows use of optional variables
in parameter lists)
         }
         // TODO: improve this test



Mime
View raw message