Skip to content

Commit

Permalink
Use StringUtils.isNotBlank to make intent of code clearer
Browse files Browse the repository at this point in the history
Part of apache#435 and Bugzilla Id: 62972


git-svn-id: https://svn.apache.org/repos/asf/jmeter/trunk@1847976 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
FSchumacher committed Dec 2, 2018
1 parent 569c141 commit b5f7acb
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -35,6 +35,7 @@
import javax.swing.JTextField;

import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.jmeter.config.Argument;
import org.apache.jmeter.config.Arguments;
import org.apache.jmeter.config.gui.ArgumentsPanel;
Expand Down Expand Up @@ -204,7 +205,7 @@ private Arguments copyDefaultArguments(Map<String, String> currArgsMap, Argument
// values that they did in the original test.
if (currArgsMap.containsKey(name)) {
String newVal = currArgsMap.get(name);
if (newVal != null && newVal.length() > 0) {
if (StringUtils.isNotBlank(newVal)) {
value = newVal;
}
}
Expand Down

0 comments on commit b5f7acb

Please sign in to comment.