jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1780667 - /jmeter/trunk/src/components/org/apache/jmeter/control/ModuleController.java
Date Sat, 28 Jan 2017 12:13:45 GMT
Author: fschumacher
Date: Sat Jan 28 12:13:45 2017
New Revision: 1780667

URL: http://svn.apache.org/viewvc?rev=1780667&view=rev
Log:
Use isEmpty instead of size on a list to check whether it is empty.

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/control/ModuleController.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/control/ModuleController.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/control/ModuleController.java?rev=1780667&r1=1780666&r2=1780667&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/control/ModuleController.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/control/ModuleController.java Sat Jan 28
12:13:45 2017
@@ -135,7 +135,7 @@ public class ModuleController extends Ge
     public void resolveReplacementSubTree(JMeterTreeNode context) {
         if (selectedNode == null) {
             List<?> nodePathList = getNodePath();
-            if (nodePathList != null && nodePathList.size() > 0) {
+            if (nodePathList != null && !nodePathList.isEmpty()) {
                 traverse(context, nodePathList, 1);
             }
 
@@ -144,7 +144,7 @@ public class ModuleController extends Ge
             }
         }
     }
-    
+
     /**
      * In GUI Mode replacement occurs when test start
      * In Non GUI Mode replacement occurs before test runs



Mime
View raw message