Skip to content

Commit 9415119

Browse files
committed
Checkstyle fix try 1
1 parent 58e5c62 commit 9415119

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

twin/src/main/java/com/iluwatar/twin/BallThread.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class BallThread extends Thread {
4242

4343
private volatile boolean isRunning = true;
4444

45-
private final Object lock=new Object();
45+
private final Object lock = new Object();
4646

4747
/**
4848
* Run the thread.
@@ -78,17 +78,15 @@ public void suspendMe() {
7878
public void resumeMe() {
7979
isSuspended = false;
8080
LOGGER.info("Begin to resume BallThread");
81-
synchronized (lock)
82-
{
81+
synchronized (lock) {
8382
lock.notify();
8483
}
8584
}
8685

8786
public void stopMe() {
8887
this.isRunning = false;
8988
this.isSuspended = true;
90-
synchronized (lock)
91-
{
89+
synchronized (lock) {
9290
lock.notify();
9391
}
9492
}

0 commit comments

Comments
 (0)