We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ab1f68 commit 1feacddCopy full SHA for 1feacdd
src/main/java/dev/openfeature/sdk/Awaitable.java
@@ -20,17 +20,12 @@ private Awaitable(boolean isDone) {
20
* immediately.
21
*/
22
@SuppressWarnings("java:S2142")
23
- public void await() {
24
- if (isDone) {
25
- return;
26
- }
27
- synchronized (this) {
28
- while (!isDone) {
29
- try {
30
- this.wait();
31
- } catch (InterruptedException ignored) {
32
- // ignored, do not propagate the interrupted state
33
+ public synchronized void await() {
+ while (!isDone) {
+ try {
+ this.wait();
+ } catch (InterruptedException ignored) {
+ // ignored, do not propagate the interrupted state
34
}
35
36
0 commit comments