Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-249

Enhance closeQuietly to indicate success

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.0
    • None
    • Utilities
    • None

    Description

      A convention of some programmers is to emit a log warning when a resource fails to close. Granted, such a condition is an error, but there's no reasonable recourse to the failure. Using IOUtils.closeQuietly() is very useful but all information about the success/failure is hidden. Returning Throwable will give insight into the error for diagnostic purposes. This change will be compatible with today's usage since the method currently returns void.

      Attachments

        1. IO-249-CloseableHandler.patch
          15 kB
          Niall Pemberton

        Activity

          People

            pbenedict Paul Benedict
            pbenedict Paul Benedict
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: