@ -88,7 +88,7 @@ public abstract class AsyncExecutionAspectSupport implements BeanFactoryAware {
@@ -88,7 +88,7 @@ public abstract class AsyncExecutionAspectSupport implements BeanFactoryAware {
/ * *
* Determine the specific executor to use when executing the given method .
* @return the executor to use ( neve r { @code null } )
* @return the executor to use ( o r { @code null } , but just if no default executor has been set )
* /
protected AsyncTaskExecutor determineAsyncExecutor ( Method method ) {
AsyncTaskExecutor executor = this . executors . get ( method ) ;
@ -102,8 +102,7 @@ public abstract class AsyncExecutionAspectSupport implements BeanFactoryAware {
@@ -102,8 +102,7 @@ public abstract class AsyncExecutionAspectSupport implements BeanFactoryAware {
this . beanFactory , Executor . class , qualifier ) ;
}
else if ( executorToUse = = null ) {
throw new IllegalStateException ( "No executor qualifier specified and no default executor set on " +
getClass ( ) . getSimpleName ( ) + " either" ) ;
return null ;
}
executor = ( executorToUse instanceof AsyncTaskExecutor ?
( AsyncTaskExecutor ) executorToUse : new TaskExecutorAdapter ( executorToUse ) ) ;