apache / distributedlog

Apache DistributedLog
Apache License 2.0
185 stars 74 forks source link

Issue173: Implement AutoCloseable in BKDistributedLogNamespace #214

Closed ArvinDevel closed 6 years ago

ArvinDevel commented 6 years ago

Descriptions of the changes in this PR:

Implement AutoCloseable in BKDistributedLogNamespace


Be sure to do all of the following to help us incorporate your contribution quickly and easily:

  • [ ] Make sure the PR title is formatted like: <Issue-# or DL-#>: Description of pull request e.g. Issue-123: Description ... e.g. DL-1234: Description ...
  • [ ] Make sure tests pass via mvn clean apache-rat:check install findbugs:check.
  • [ ] Replace '#' with in <Issue-# or DL-#> in the title with the actual Issue/JIRA number.

ArvinDevel commented 6 years ago

I have just implemented AutoCloseable in BKDistributedLogNamespace, not removed unnecessary use of namespace.close() in try- finally block.