mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 18:15:41 +00:00
fix: guarded suspension checkstyle
This commit is contained in:
1 parent
3d48f06980
commit
c0e20ec570
2 files changed
+2
-2
No files matched your search
@@ -29,7 +29,7 @@ import java.util.concurrent.TimeUnit;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Guarded-suspension is a concurrent design pattern for handling situation when to execute some
|
* Guarded-suspension is a concurrent design pattern for handling situation when to execute some
|
||||||
* action we need condition to be satisfied.
|
* action we need condition to be satisfied.
|
||||||
* The implementation utilizes a GuardedQueue, which features two primary methods: `get` and `put`.
|
* The implementation utilizes a GuardedQueue, which features two primary methods: `get` and `put`.
|
||||||
* The key condition governing these operations is that elements cannot be retrieved (`get`) from
|
* The key condition governing these operations is that elements cannot be retrieved (`get`) from
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test for Guarded Queue
|
* Test for Guarded Queue.
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
class GuardedQueueTest {
|
class GuardedQueueTest {
|
||||||
|
|||||||
Reference in new issue
Block a user