Skip to content

Commit f6cc1cb

Browse files
committed
Make Testcontainer wait strategies final
1 parent f39cea0 commit f6cc1cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/testcontainers/CassandraContainer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public CassandraContainer() {
4343
.withStartupAttempts(3).withStartupTimeout(Duration.ofSeconds(60)));
4444
}
4545

46-
private static class WaitStrategy extends HostPortWaitStrategy {
46+
private static final class WaitStrategy extends HostPortWaitStrategy {
4747

4848
private final int port;
4949

Diff for: spring-boot-project/spring-boot-tools/spring-boot-test-support/src/main/java/org/springframework/boot/testsupport/testcontainers/Neo4jContainer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public Neo4jContainer() {
4343
.withEnv("NEO4J_AUTH", "none"));
4444
}
4545

46-
private static class WaitStrategy extends HostPortWaitStrategy {
46+
private static final class WaitStrategy extends HostPortWaitStrategy {
4747

4848
private final int port;
4949

0 commit comments

Comments
 (0)