jmeter-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1780669&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/ThroughputController.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/control/ThroughputController.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/control/ThroughputController.java?rev=1780669&r1=1780668&r2=1780669&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/control/ThroughputController.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/control/ThroughputController.java Sat Jan
28 12:20:32 2017
@@ -209,7 +209,7 @@ public class ThroughputController extend
      */
     @Override
     public boolean isDone() {
-        if (subControllersAndSamplers.size() == 0) {
+        if (subControllersAndSamplers.isEmpty()) {
             return true;
         } else if (getStyle() == BYNUMBER && getExecutions() >= getMaxThroughputAsInt()
                 && current >= getSubControllers().size()) {



Mime
View raw message