mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix ssh bug
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user