From 8ea71addf54ca13dbbc8f236864a8712834d65c1 Mon Sep 17 00:00:00 2001 From: Johann Beleites <63855942+johann-beleites-sonarsource@users.noreply.github.com> Date: Fri, 11 Aug 2023 16:35:13 +0200 Subject: [PATCH] Modify rule S2274: Improve compliant solution (#2868) --- rules/S2274/java/rule.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/S2274/java/rule.adoc b/rules/S2274/java/rule.adoc index 73b7438a6c..1a0b5fb9de 100644 --- a/rules/S2274/java/rule.adoc +++ b/rules/S2274/java/rule.adoc @@ -56,7 +56,7 @@ synchronized (obj) { while (!suitableCondition()){ obj.wait(timeout); // Compliant, the condition is checked in a loop, so the action below will only occur if the condition is true } - ... // Perform action appropriate to condition + ... // Perform some logic that is appropriate for when the condition is true } ----