Skip to content

Commit 3e02b68

Browse files
committed
fix BAT
1 parent 002111e commit 3e02b68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

header/src/main/java/org/zstack/header/core/AbstractCompletion.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.zstack.header.core;
22

3-
import java.util.Arrays;
3+
import java.util.ArrayList;
44
import java.util.Collections;
55
import java.util.List;
66
import java.util.concurrent.atomic.AtomicBoolean;
@@ -24,7 +24,8 @@ public final void setBackups(List<AsyncBackup> backups) {
2424

2525
protected AbstractCompletion(AsyncBackup one, AsyncBackup... others) {
2626
if (one != null) {
27-
backups = Collections.singletonList(one);
27+
backups = new ArrayList<>();
28+
backups.add(one);
2829
Collections.addAll(backups, others);
2930
} else {
3031
backups = asList(others);

0 commit comments

Comments
 (0)