File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
core/src/main/java/org/testcontainers/lifecycle Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public Thread newThread(Runnable r) {
27
27
/**
28
28
* @see #deepStart(Stream)
29
29
*/
30
- public CompletableFuture <Void > deepStart (Collection <Startable > startables ) {
30
+ public CompletableFuture <Void > deepStart (Collection <? extends Startable > startables ) {
31
31
return deepStart (startables .stream ());
32
32
}
33
33
@@ -49,7 +49,7 @@ public CompletableFuture<Void> deepStart(Collection<Startable> startables) {
49
49
* @param startables a {@link Stream} of {@link Startable}s to start and scan for transitive dependencies.
50
50
* @return a {@link CompletableFuture} that resolves once all {@link Startable}s have started.
51
51
*/
52
- public CompletableFuture <Void > deepStart (Stream <Startable > startables ) {
52
+ public CompletableFuture <Void > deepStart (Stream <? extends Startable > startables ) {
53
53
return deepStart (new HashMap <>(), startables );
54
54
}
55
55
@@ -58,7 +58,7 @@ public CompletableFuture<Void> deepStart(Stream<Startable> startables) {
58
58
* @param started an intermediate storage for already started {@link Startable}s to prevent multiple starts.
59
59
* @param startables a {@link Stream} of {@link Startable}s to start and scan for transitive dependencies.
60
60
*/
61
- private CompletableFuture <Void > deepStart (Map <Startable , CompletableFuture <Void >> started , Stream <Startable > startables ) {
61
+ private CompletableFuture <Void > deepStart (Map <Startable , CompletableFuture <Void >> started , Stream <? extends Startable > startables ) {
62
62
CompletableFuture [] futures = startables
63
63
.sequential ()
64
64
.map (it -> {
You can’t perform that action at this time.
0 commit comments