jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1817410 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/BackendListener.java
Date Thu, 07 Dec 2017 19:34:15 GMT
Author: pmouawad
Date: Thu Dec  7 19:34:15 2017
New Revision: 1817410

URL: http://svn.apache.org/viewvc?rev=1817410&view=rev
Log:
Keep the "==" comparison

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/BackendListener.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/BackendListener.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/BackendListener.java?rev=1817410&r1=1817409&r2=1817410&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/BackendListener.java
(original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/backend/BackendListener.java
Thu Dec  7 19:34:15 2017
@@ -218,7 +218,8 @@ public class BackendListener extends Abs
                                     sampleResult == FINAL_SAMPLE_RESULT);
                         }
                         // try to process as many as possible
-                        while (!(endOfLoop = FINAL_SAMPLE_RESULT.equals(sampleResult)) &&
sampleResult != null ) {
+                        // The == comparison is not a mistake
+                        while (!(endOfLoop = (sampleResult == FINAL_SAMPLE_RESULT)) &&
sampleResult != null ) { 
                             sampleResults.add(sampleResult);
                             if (isDebugEnabled) {
                                 log.debug("Thread: {} polling from queue: {}", Thread.currentThread().getName(),



Mime
View raw message