Skip to content
Snippets Groups Projects
Commit 5c546e4f authored by brinn's avatar brinn
Browse files

change: use IOUtils.closeQuietly() where appropriate

SVN: 4982
parent 8859fb17
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,8 @@ import java.util.regex.Pattern; ...@@ -37,6 +37,8 @@ import java.util.regex.Pattern;
import javax.swing.JFileChooser; import javax.swing.JFileChooser;
import org.apache.commons.io.IOUtils;
/** /**
* Helper application which creates 'mass upload' files to be used to setup the database from a PostgreSQL dump. * Helper application which creates 'mass upload' files to be used to setup the database from a PostgreSQL dump.
* <p> * <p>
...@@ -97,7 +99,7 @@ public class DumpPreparator ...@@ -97,7 +99,7 @@ public class DumpPreparator
createUploadFiles(reader, destination); createUploadFiles(reader, destination);
} finally } finally
{ {
reader.close(); IOUtils.closeQuietly(reader);
} }
} }
...@@ -283,10 +285,7 @@ public class DumpPreparator ...@@ -283,10 +285,7 @@ public class DumpPreparator
} }
} finally } finally
{ {
if (writer != null) IOUtils.closeQuietly(writer);
{
writer.close();
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment