From 712d935c8e85226bb3508e43cefceb4cb7e1ef39 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 25 Jun 2024 22:15:42 -0700 Subject: [PATCH] Fix checkstyle violation See gh-35786 --- .../TestcontainersLifecycleOrderWithScopeIntegrationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-testcontainers/src/test/java/org/springframework/boot/testcontainers/lifecycle/TestcontainersLifecycleOrderWithScopeIntegrationTests.java b/spring-boot-project/spring-boot-testcontainers/src/test/java/org/springframework/boot/testcontainers/lifecycle/TestcontainersLifecycleOrderWithScopeIntegrationTests.java index abb3c181437..48614af9f47 100644 --- a/spring-boot-project/spring-boot-testcontainers/src/test/java/org/springframework/boot/testcontainers/lifecycle/TestcontainersLifecycleOrderWithScopeIntegrationTests.java +++ b/spring-boot-project/spring-boot-testcontainers/src/test/java/org/springframework/boot/testcontainers/lifecycle/TestcontainersLifecycleOrderWithScopeIntegrationTests.java @@ -187,7 +187,7 @@ class TestcontainersLifecycleOrderWithScopeIntegrationTests { return null; } - public void destroy() { + void destroy() { synchronized (this) { this.destructors.forEach((name, actions) -> actions.forEach(Runnable::run)); this.destructors.clear();