Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Commit

Permalink
Generalize method signature of LaunchUtils.whenTerminated
Browse files Browse the repository at this point in the history
  • Loading branch information
kdvolder committed Dec 16, 2015
1 parent 5cedd0e commit f80129c
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -12,6 +12,7 @@

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.Future;
Expand Down Expand Up @@ -41,7 +42,7 @@ private static void debug(String string) {
* already terminated then the code is executed synchronously, otherwise it is executed asynchronously when
* a termination event is received.
*/
public static void whenTerminated(List<ILaunch> launches, Runnable runnable) {
public static void whenTerminated(Collection<ILaunch> launches, Runnable runnable) {
new WhenTerminated(new ArrayList<ILaunch>(launches), runnable);
}

Expand Down

0 comments on commit f80129c

Please sign in to comment.