You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2022/04/18 15:41:51 UTC

[jmeter] 12/16: Suppress warning about calling wait without a loop

This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git

commit 16340ba1b8a0d441cb52c58423ebc0d3bf343fb9
Author: Felix Schumacher <fe...@internetallee.de>
AuthorDate: Mon Apr 18 17:21:19 2022 +0200

    Suppress warning about calling wait without a loop
    
    While it is certainly not good to wait ouside a loop,
    it is not that problematic here, as the test should fail
    in such a case.
---
 .../src/test/java/org/apache/jmeter/functions/Synchronizer.java          | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/functions/src/test/java/org/apache/jmeter/functions/Synchronizer.java b/src/functions/src/test/java/org/apache/jmeter/functions/Synchronizer.java
index ebcd95648d..93a061444d 100644
--- a/src/functions/src/test/java/org/apache/jmeter/functions/Synchronizer.java
+++ b/src/functions/src/test/java/org/apache/jmeter/functions/Synchronizer.java
@@ -25,6 +25,7 @@ class Synchronizer {
         notifyAll();
     }
 
+    @SuppressWarnings("WaitNotInLoop")
     void pass() {
         done();
         try {