Solr
  1. Solr
  2. SOLR-8357

UpdateLog.RecentUpdates should implement Closeable

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5
    • Component/s: None
    • Labels:
      None

      Description

      It has a close() method, which always needs to be called, so we should make it implement Closeable and allow it to be used in try-with-resources blocks.

      1. SOLR-8357.patch
        15 kB
        Alan Woodward

        Activity

        Hide
        Alan Woodward added a comment -

        Patch, also with a small bit of refactoring to make construction cleaner.

        Show
        Alan Woodward added a comment - Patch, also with a small bit of refactoring to make construction cleaner.
        Hide
        ASF subversion and git services added a comment -

        Commit 1717603 from Alan Woodward in branch 'dev/trunk'
        [ https://svn.apache.org/r1717603 ]

        SOLR-8357: UpdateLog.RecentUpdates implements Closeable

        Show
        ASF subversion and git services added a comment - Commit 1717603 from Alan Woodward in branch 'dev/trunk' [ https://svn.apache.org/r1717603 ] SOLR-8357 : UpdateLog.RecentUpdates implements Closeable
        Hide
        ASF subversion and git services added a comment -

        Commit 1717606 from Alan Woodward in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1717606 ]

        SOLR-8357: UpdateLog.RecentUpdates implements Closeable

        Show
        ASF subversion and git services added a comment - Commit 1717606 from Alan Woodward in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1717606 ] SOLR-8357 : UpdateLog.RecentUpdates implements Closeable

          People

          • Assignee:
            Alan Woodward
            Reporter:
            Alan Woodward
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development