Do not collect iterables

This commit is contained in:
Andrea Cavalli 2022-09-18 23:38:21 +02:00
parent 32e5a100f5
commit d004f750a0

View File

@ -1022,7 +1022,7 @@ public class LLUtils {
}
} else if (next instanceof Resource<?> resource && resource.isAccessible()) {
resource.close();
} else if (next instanceof Iterable<?> iterable) {
} else if (next instanceof Collection<?> iterable) {
iterable.forEach(LLUtils::onNextDropped);
} else if (next instanceof AbstractImmutableNativeReference rocksObj) {
if (rocksObj.isOwningHandle()) {