Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 35bc655

Browse files
committed
Update Disposable.java
1 parent 8c0d736 commit 35bc655

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/common-util/main/java/org/comroid/common/Disposable.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ default Set<? super AutoCloseable> getCloseables() {
1818
}
1919

2020
@NonExtendable
21-
default void addChildren(AutoCloseable child) {
22-
getCloseables().add(child);
21+
default void addChildren(AutoCloseable... childs) {
22+
for (AutoCloseable child : childs)
23+
getCloseables().add(child);
2324
}
2425

2526
@OverrideOnly

0 commit comments

Comments
 (0)