Commits

James Dumay  committed bf0e26f

Remove dependency on commons-io

  • Participants
  • Parent commits 4e28e6b

Comments (0)

Files changed (1)

File src/main/java/com/atlassian/utils/process/IOUtils.java

+package com.atlassian.utils.process;
+
+import java.io.IOException;
+import java.io.Writer;
+
+final class IOUtils
+{
+    public static void closeQuietly(Writer writer) {
+        try {
+            if (writer != null) {
+                writer.close();
+            }
+        } catch (IOException ioe) {
+            // ignore
+        }
+    }
+}