mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-06-05 10:13:21 +00:00
📍Use lombok, reformat, and optimize the code (#1560)
* Use lombok, reformat, and optimize the code * Fix merge conflicts and some sonar issues Co-authored-by: va1m <va1m@email.com>
This commit is contained in:
+2
-2
@@ -36,7 +36,7 @@ public class GuardedQueueTest {
|
||||
private volatile Integer value;
|
||||
|
||||
@Test
|
||||
public void testGet() {
|
||||
void testGet() {
|
||||
var g = new GuardedQueue();
|
||||
var executorService = Executors.newFixedThreadPool(2);
|
||||
executorService.submit(() -> value = g.get());
|
||||
@@ -51,7 +51,7 @@ public class GuardedQueueTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPut() {
|
||||
void testPut() {
|
||||
var g = new GuardedQueue();
|
||||
g.put(12);
|
||||
assertEquals(Integer.valueOf(12), g.get());
|
||||
|
||||
Reference in New Issue
Block a user