Fixed a typo
This commit is contained in:
parent
56c231c662
commit
672d6ed5d8
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user