Hello All,

As I can see in latest directory-api sources

interface Cursor<E> extends Iterable<E>

Maybe it worth to be changed to

interface Cursor<E> extends Iterable<E>, Closable

This way will be no need to declare void close(); explicitly
Also It will be possible to use
try (EntryCursor cursor = new EntryCursorImpl(...)) {
} catch (...) {
}
constructs

WDYT?

not sure maybe this question better fits dev@ list


-- 
WBR
Maxim aka solomax

Reply via email to