Polishing
This commit is contained in:
@@ -21,7 +21,6 @@ import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
import org.springframework.beans.BeansException;
|
||||
import org.springframework.beans.factory.BeanFactory;
|
||||
import org.springframework.beans.factory.BeanFactoryAware;
|
||||
import org.springframework.beans.factory.annotation.BeanFactoryAnnotationUtils;
|
||||
|
||||
@@ -63,7 +63,7 @@ public class AsyncExecutionInterceptor extends AsyncExecutionAspectSupport
|
||||
/**
|
||||
* Create a new {@code AsyncExecutionInterceptor}.
|
||||
* @param defaultExecutor the {@link Executor} (typically a Spring {@link AsyncTaskExecutor}
|
||||
* or {@link java.util.concurrent.ExecutorService}) to delegate to.
|
||||
* or {@link java.util.concurrent.ExecutorService}) to delegate to
|
||||
*/
|
||||
public AsyncExecutionInterceptor(Executor defaultExecutor) {
|
||||
super(defaultExecutor);
|
||||
|
||||
@@ -43,7 +43,7 @@ public class MemorySafeUndeclaredThrowableStrategy extends DefaultGeneratorStrat
|
||||
};
|
||||
|
||||
|
||||
private Class<?> wrapper;
|
||||
private final Class<?> wrapper;
|
||||
|
||||
|
||||
public MemorySafeUndeclaredThrowableStrategy(Class<?> wrapper) {
|
||||
@@ -52,9 +52,9 @@ public class MemorySafeUndeclaredThrowableStrategy extends DefaultGeneratorStrat
|
||||
|
||||
|
||||
protected ClassGenerator transform(ClassGenerator cg) throws Exception {
|
||||
ClassTransformer tr = new UndeclaredThrowableTransformer(wrapper);
|
||||
tr = new MethodFilterTransformer(TRANSFORM_FILTER, tr);
|
||||
return new TransformingClassGenerator(cg, tr);
|
||||
ClassTransformer ct = new UndeclaredThrowableTransformer(this.wrapper);
|
||||
ct = new MethodFilterTransformer(TRANSFORM_FILTER, ct);
|
||||
return new TransformingClassGenerator(cg, ct);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user