Skip to content

Commit 7984ee7

Browse files
authored
Update ReentrantReadWriteLockDemo.java
1 parent f499b95 commit 7984ee7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ReentrantReadWriteLockDemo.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
package main.concurrency;
2-
31
import java.util.ArrayList;
42
import java.util.Collections;
53
import java.util.List;
@@ -63,7 +61,7 @@ void add(int i) {
6361

6462
private static class Worker implements Runnable {
6563
private static final int MAX_OP = 5;
66-
private String name;
64+
private final String name;
6765
private boolean stop = false;
6866
private int count = 1;
6967

0 commit comments

Comments
 (0)