accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Turner (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-4318) Make BatchWriter, ConditionalWriter, and ScannerBase extend AutoCloseable
Date Fri, 27 May 2016 19:53:12 GMT
Keith Turner created ACCUMULO-4318:
--------------------------------------

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


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)

Mime
View raw message