fix ssh bug

This commit is contained in:
Looly
2019-11-29 10:58:25 +08:00
parent da031ee61c
commit 6c62973048
3 changed files with 6 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ public class ThreadUtil {
* @param isDaemon 是否守护线程。守护线程会在主线程结束后自动结束
* @return 执行的方法体
*/
public static Runnable excAsync(final Runnable runnable, boolean isDaemon) {
public static Runnable execAsync(final Runnable runnable, boolean isDaemon) {
Thread thread = new Thread(runnable);
thread.setDaemon(isDaemon);
thread.start();
@@ -432,6 +432,7 @@ public class ThreadUtil {
* @param obj 对象所在线程
* @since 4.5.6
*/
@SuppressWarnings("SynchronizationOnLocalVariableOrMethodParameter")
public static void sync(Object obj) {
synchronized (obj) {
try {