Skip to content

Commit

Permalink
spotless fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz committed Oct 10, 2023
1 parent a6ad23e commit aa25eb4
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,15 @@ static class VirtualThreadExecutorTest extends ExecutorInstrumentationTest<Execu
private static ExecutorService newVirtualThreadPerAskExecutor() {
Method newVirtualThreadPerTaskExecutor;
try {
newVirtualThreadPerTaskExecutor = Executors.class.getMethod("newVirtualThreadPerTaskExecutor");
ExecutorService executor = (ExecutorService) newVirtualThreadPerTaskExecutor.invoke(null);
return executor;
newVirtualThreadPerTaskExecutor =
Executors.class.getMethod("newVirtualThreadPerTaskExecutor");
return (ExecutorService) newVirtualThreadPerTaskExecutor.invoke(null);
} catch (InvocationTargetException | NoSuchMethodException | IllegalAccessException e) {
throw new IllegalStateException("Should not happen on Java 21+", e);
}
}
}

static class WorkStealingPoolTest extends ExecutorInstrumentationTest<ExecutorService> {
public WorkStealingPoolTest() {
super(Executors.newWorkStealingPool(2));
Expand Down

0 comments on commit aa25eb4

Please sign in to comment.