Skip to content

Commit 9efd437

Browse files
committed
CommandFuture#ofAll: Don't qualify the static method call to immediate
1 parent 4a4f6f5 commit 9efd437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/theholywaffle/teamspeak3/api/CommandFuture.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ public static <F> CommandFuture<List<F>> ofAll(CommandFuture<F>... futures) {
777777
* @return a future which succeeds if all supplied futures succeed
778778
*/
779779
public static <F> CommandFuture<List<F>> ofAll(final Collection<CommandFuture<F>> futures) {
780-
if (futures.isEmpty()) return CommandFuture.immediate(Collections.emptyList());
780+
if (futures.isEmpty()) return immediate(Collections.emptyList());
781781

782782
@SuppressWarnings("unchecked") final F[] results = (F[]) new Object[futures.size()];
783783
final AtomicInteger successCounter = new AtomicInteger(futures.size());

0 commit comments

Comments
 (0)