Skip to content

Commit

Permalink
Get rid of "this-escape" warning in NodeShutdownTasksIT (elastic#101657)
Browse files Browse the repository at this point in the history
* Make test class final instead of suppressing

If this class is final, there can't be any subclasses, and therefore no subclass initialization bugs and no JDK warning.
  • Loading branch information
williamrandolph committed Nov 1, 2023
1 parent c6999a3 commit 0e9cf1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public List<NamedXContentRegistry.Entry> getNamedXContent() {
}
}

public static class TaskExecutor extends PersistentTasksExecutor<TestTaskParams> implements ClusterStateListener {
public static final class TaskExecutor extends PersistentTasksExecutor<TestTaskParams> implements ClusterStateListener {

private final PersistentTasksService persistentTasksService;

Expand Down

0 comments on commit 0e9cf1c

Please sign in to comment.