directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim Solodovnik <solomax...@gmail.com>
Subject Re: Maybe Cursor should also extends Closable
Date Fri, 29 Jan 2016 09:06:36 GMT
sorry for cross-posting, but I have no response in user list
Hopefully this list will fit better :)

On Tue, Jan 12, 2016 at 2:34 PM, Maxim Solodovnik <solomax666@gmail.com>
wrote:

> 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
>



-- 
WBR
Maxim aka solomax

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message