This commit is contained in:
Looly
2020-06-02 17:52:24 +08:00
parent 670cb3c10b
commit 58441b393f
2 changed files with 6 additions and 2 deletions

View File

@@ -95,9 +95,11 @@ public class ThreadFactoryBuilder implements Builder<ThreadFactory>{
* 设置未捕获异常的处理方式
*
* @param uncaughtExceptionHandler {@link UncaughtExceptionHandler}
* @return this
*/
public void setUncaughtExceptionHandler(UncaughtExceptionHandler uncaughtExceptionHandler) {
public ThreadFactoryBuilder setUncaughtExceptionHandler(UncaughtExceptionHandler uncaughtExceptionHandler) {
this.uncaughtExceptionHandler = uncaughtExceptionHandler;
return this;
}
/**