We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b14d83 commit 649596dCopy full SHA for 649596d
1 file changed
concurrent/src/main/java/juc/SemaphoreTest.java
@@ -43,7 +43,7 @@ public void use() {
43
System.out.println(Thread.currentThread().getName() +" 使用完毕");
44
} catch (InterruptedException e) {
45
e.printStackTrace();
46
- }finally{
+ } finally{
47
//释放许可
48
semaphore.release();
49
}
0 commit comments