Fix checkstyle violation

See gh-35786
This commit is contained in:
Phillip Webb 2024-06-25 22:15:42 -07:00
parent eef4c3c2c0
commit 712d935c8e

View File

@ -187,7 +187,7 @@ class TestcontainersLifecycleOrderWithScopeIntegrationTests {
return null; return null;
} }
public void destroy() { void destroy() {
synchronized (this) { synchronized (this) {
this.destructors.forEach((name, actions) -> actions.forEach(Runnable::run)); this.destructors.forEach((name, actions) -> actions.forEach(Runnable::run));
this.destructors.clear(); this.destructors.clear();