Skip to content

Commit bb11812

Browse files
committed
Polishing
1 parent 63ace09 commit bb11812

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

junit-platform-engine/src/main/java/org/junit/platform/engine/support/hierarchical/ConcurrentHierarchicalTestExecutorService.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,14 @@ private void maybeStartWorker(BooleanSupplier doneCondition) {
153153
() -> this.maybeStartWorker(doneCondition)));
154154
}
155155

156-
private record RunLeaseAwareWorker(WorkerLease workerLease, Runnable worker, Runnable onWorkerFinished)
156+
private record RunLeaseAwareWorker(WorkerLease workerLease, Runnable work, Runnable onWorkerFinished)
157157
implements Runnable {
158158

159159
@Override
160160
public void run() {
161161
LOGGER.trace(() -> "starting worker");
162162
try {
163-
worker.run();
163+
work.run();
164164
}
165165
finally {
166166
workerLease.release(false);
@@ -667,8 +667,10 @@ void reacquire() throws InterruptedException {
667667

668668
@Override
669669
public String toString() {
670-
return new ToStringBuilder(this).append("parallelism", parallelism).append("semaphore",
671-
semaphore).toString();
670+
return new ToStringBuilder(this) //
671+
.append("parallelism", parallelism) //
672+
.append("semaphore", semaphore) //
673+
.toString();
672674
}
673675
}
674676

0 commit comments

Comments
 (0)