Skip to content

Commit

Permalink
more change
Browse files Browse the repository at this point in the history
  • Loading branch information
chengw-netflix committed Apr 3, 2023
1 parent ba5ca4f commit f65d37c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -101,7 +101,7 @@ public void addTaskWithDelay(

public void runTaskNow(Class<? extends Task> taskclass) throws Exception {
// Create a new instance of the task using reflection
Task taskInstance = taskclass.getDeclaredConstructor().newInstance();
Task taskInstance = taskclass.getConstructor().newInstance();
// Call the execute method on the instance
taskInstance.execute(null);
}
Expand Down

0 comments on commit f65d37c

Please sign in to comment.