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

Deprecated of all IOUtils.closeQuietly() methods and use try-with-resources internally

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6
    • Component/s: None
    • Labels:
      None

      Description

      As soon as 'commons-io' is targetted at Java 7, all 'IOUtils.closeQuietly' methods should be deprecated and people should be told to use the try-with-resources statement. Those methods are way to error prone and used incorrectly almost everywhere. If 'commons-io' has '-target 1.7', keeping those methods makes no sense anymore.

        Attachments

        1. IO-504.patch
          34 kB
          Christian Schulte
        2. IO-504.patch
          28 kB
          Christian Schulte

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              schulte77 Christian Schulte
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: