Skip to content

Commit

Permalink
setTaskWrappers for ScheduledDtpExecutor's delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhom1314 committed Dec 26, 2024
1 parent 14f5c39 commit 34f36f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static Field getField(Class<?> targetClass, String fieldName) {
}

public static Method findMethod(Class<?> targetClass, String methodName, Class<?>... parameterTypes) {
Method method = MethodUtils.getMatchingAccessibleMethod(targetClass, methodName, parameterTypes);
Method method = MethodUtils.getMatchingMethod(targetClass, methodName, parameterTypes);
if (Objects.isNull(method)) {
log.warn("Method '{}' with parameters '{}' not found in class '{}'", methodName, parameterTypes, targetClass.getName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public ScheduledDtpExecutor(int corePoolSize,
corePoolSize = corePoolSize == 0 ? 1 : corePoolSize;
}
delegate = new ScheduledThreadPoolExecutorProxy(new ScheduledThreadPoolExecutor(corePoolSize, threadFactory, handler));
delegate.setTaskWrappers(getTaskWrappers());
}

@Override
Expand Down

0 comments on commit 34f36f6

Please sign in to comment.