Modify rule S2274: Improve compliant solution (#2868)

This commit is contained in:
Johann Beleites 2023-08-11 16:35:13 +02:00 committed by GitHub
parent 7da41a60be
commit 8ea71addf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
----