Do not collect iterables
This commit is contained in:
parent
32e5a100f5
commit
d004f750a0
@ -1022,7 +1022,7 @@ public class LLUtils {
|
|||||||
}
|
}
|
||||||
} else if (next instanceof Resource<?> resource && resource.isAccessible()) {
|
} else if (next instanceof Resource<?> resource && resource.isAccessible()) {
|
||||||
resource.close();
|
resource.close();
|
||||||
} else if (next instanceof Iterable<?> iterable) {
|
} else if (next instanceof Collection<?> iterable) {
|
||||||
iterable.forEach(LLUtils::onNextDropped);
|
iterable.forEach(LLUtils::onNextDropped);
|
||||||
} else if (next instanceof AbstractImmutableNativeReference rocksObj) {
|
} else if (next instanceof AbstractImmutableNativeReference rocksObj) {
|
||||||
if (rocksObj.isOwningHandle()) {
|
if (rocksObj.isOwningHandle()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user