From ee95a110bd6e4c7a78a6fcad804548e9401c592e Mon Sep 17 00:00:00 2001 From: diguage Date: Thu, 13 Dec 2018 17:13:02 +0800 Subject: [PATCH] Fix sample in EnableAsync Javadoc Closes gh-2050 --- .../org/springframework/scheduling/annotation/EnableAsync.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java index 486953f934..2acf630ec0 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java @@ -99,7 +99,7 @@ import org.springframework.core.Ordered; * * @Override * public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() { - * return MyAsyncUncaughtExceptionHandler(); + * return new MyAsyncUncaughtExceptionHandler(); * } * } *