[
https://issues.apache.org/jira/browse/ACCUMULO-4318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15308844#comment-15308844
]
Keith Turner commented on ACCUMULO-4318:
----------------------------------------
For the record I made a commit against against this issue that was supposed to
be for ACCUMULO-4314.
> Make BatchWriter, ConditionalWriter, and ScannerBase extend AutoCloseable
> -------------------------------------------------------------------------
>
> Key: ACCUMULO-4318
> URL: https://issues.apache.org/jira/browse/ACCUMULO-4318
> Project: Accumulo
> Issue Type: Improvement
> Reporter: Keith Turner
> Assignee: Keith Turner
> Fix For: 1.8.0
>
> Time Spent: 2h
> Remaining Estimate: 0h
>
> BatchWriter, ConditionalWriter, Scanner, and BatchScanner all have close
> Methods. Howerver because they do not implement AutoCloseable they can not
> be used with try-with-resources.
> It would be simple to add AutoCloseable to all of these. I think this change
> should only be made in a minor release because it allows writing code that
> will not work with older versions.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)