jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1782601 - /jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java
Date Sat, 11 Feb 2017 13:09:00 GMT
Author: fschumacher
Date: Sat Feb 11 13:08:59 2017
New Revision: 1782601

URL: http://svn.apache.org/viewvc?rev=1782601&view=rev
Log:
Resolve a sonar warning and remove a useless paren.

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java?rev=1782601&r1=1782600&r2=1782601&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java Sat Feb 11 13:08:59
2017
@@ -906,9 +906,9 @@ public class JMeterThread implements Run
                 try {
                     TimeUnit.MILLISECONDS.sleep(pause); // delay between checks
                 } catch (InterruptedException e) {
-                    if (running) { 
+                    if (running) { // NOSONAR running may have been changed from another
thread 
                         log.warn("{} delay for {} was interrupted. Waited {} milli-seconds
out of {}", type, threadName,
-                                (now - start), delay);
+                                now - start, delay);
                     }
                     Thread.currentThread().interrupt();
                     break;



Mime
View raw message