jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1719795 - /jmeter/trunk/src/core/org/apache/jmeter/report/processor/ExternalSampleSorter.java
Date Sun, 13 Dec 2015 11:48:15 GMT
Author: fschumacher
Date: Sun Dec 13 11:48:15 2015
New Revision: 1719795

URL: http://svn.apache.org/viewvc?rev=1719795&view=rev
Log:
size can be an expensive operation on a collection, so use isEmpty instead.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/ExternalSampleSorter.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/ExternalSampleSorter.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/ExternalSampleSorter.java?rev=1719795&r1=1719794&r2=1719795&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/ExternalSampleSorter.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/ExternalSampleSorter.java Sun
Dec 13 11:48:15 2015
@@ -320,7 +320,7 @@ public class ExternalSampleSorter extend
 
     @Override
     public void stopConsuming() {
-        if (samples.size() > 0) {
+        if (!samples.isEmpty()) {
             chunks.add(sortAndDump(samples, sampleMetadata));
         }
         if (log.isDebugEnabled()) {



Mime
View raw message