Fixed a typo

This commit is contained in:
Ali Dehghani 2020-06-25 13:32:33 +04:30
parent 56c231c662
commit 672d6ed5d8

View File

@ -35,7 +35,7 @@ public class BaeldungSychronizedBlockUnitTest {
} }
@Test @Test
public void givenHoldingTheLock_whenReentrant_thenCanAcquireItItAgain() { public void givenHoldingTheLock_whenReentrant_thenCanAcquireItAgain() {
Object lock = new Object(); Object lock = new Object();
synchronized (lock) { synchronized (lock) {
System.out.println("First time acquiring it"); System.out.println("First time acquiring it");