看到生产上的代码片段:
try { Thread.sleep(10); XXXX } catch (InterruptedException e) { LogCore.core.error(ExceptionUtils.getStackTrace(e)); }
心生疑窦:
为什么不直接用
try { Thread.sleep(10); node.pulse(); } catch (InterruptedException e) { LogCore.core.error("",e); }
或者是
try { Thread.sleep(10); node.pulse(); } catch (InterruptedException e) { LogCore.core.error(e.toString()); }
?
时间: 2024-08-01 10:40:41