jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1773595 - /jmeter/trunk/src/core/org/apache/jmeter/threads/TestCompiler.java
Date Sun, 11 Dec 2016 18:23:01 GMT
Author: fschumacher
Date: Sun Dec 11 18:23:01 2016
New Revision: 1773595

URL: http://svn.apache.org/viewvc?rev=1773595&view=rev
Log:
Use isEmpty instead of size.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/threads/TestCompiler.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/TestCompiler.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/threads/TestCompiler.java?rev=1773595&r1=1773594&r2=1773595&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/threads/TestCompiler.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/threads/TestCompiler.java Sun Dec 11 18:23:01
2016
@@ -140,7 +140,7 @@ public class TestCompiler implements Has
             saveTransactionControllerConfigs((TransactionController) child);
         }
         stack.removeLast();
-        if (stack.size() > 0) {
+        if (!stack.isEmpty()) {
             TestElement parent = stack.getLast();
             boolean duplicate = false;
             // Bug 53750: this condition used to be in ObjectPair#addTestElements()



Mime
View raw message