[Feature] add for new

This commit is contained in:
binbin.hou
2020-09-10 16:20:38 +08:00
parent 71d554ba3b
commit 422ec999ac
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package com.github.houbb.lock.test;
/**
* @author binbin.hou
* @since 0.0.1
*/
public class SyncTest {
public synchronized void syncOne() {
System.out.println("方法1执行");
syncTwo();
}
public synchronized void syncTwo() {
System.out.println("方法2执行");
}
}

View File

@@ -0,0 +1 @@
package com.github.houbb.lock.test;