Skip to content

Commit b631546

Browse files
committed
Rename: CustomStack to CustomConcurrentStack to avoid names clashing
1 parent 59738b9 commit b631546

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/by/andd3dfx/multithreading/stack/CustomStack.java renamed to src/main/java/by/andd3dfx/multithreading/stack/CustomConcurrentStack.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Implement custom stack with multithreading support without using blocking operations
99
*/
10-
public class CustomStack<T> {
10+
public class CustomConcurrentStack<T> {
1111

1212
private Deque<T> deque = new ArrayDeque<>();
1313
private ReentrantReadWriteLock lock = new ReentrantReadWriteLock();

src/test/java/by/andd3dfx/multithreading/stack/CustomStackTest.java renamed to src/test/java/by/andd3dfx/multithreading/stack/CustomConcurrentStackTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
import static org.hamcrest.CoreMatchers.is;
99
import static org.hamcrest.MatcherAssert.assertThat;
1010

11-
public class CustomStackTest {
11+
public class CustomConcurrentStackTest {
1212

13-
private CustomStack<Integer> stack;
13+
private CustomConcurrentStack<Integer> stack;
1414

1515
@Before
1616
public void setUp() {
17-
stack = new CustomStack<>();
17+
stack = new CustomConcurrentStack<>();
1818
}
1919

2020
@Test

0 commit comments

Comments
 (0)