diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2013-09-15 15:43:28 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2013-09-15 15:43:28 +0200 |
| commit | cc28e603739e010b13e2e2afa2260eaf63978cb1 (patch) | |
| tree | 420a62062070a1fbd108547402c65b42630ae23a /main/src/cgeo/geocaching/utils | |
| parent | 5d0dee5e937945042f5f5e59b4934ff4d6f6dbb4 (diff) | |
| download | cgeo-cc28e603739e010b13e2e2afa2260eaf63978cb1.zip cgeo-cc28e603739e010b13e2e2afa2260eaf63978cb1.tar.gz cgeo-cc28e603739e010b13e2e2afa2260eaf63978cb1.tar.bz2 | |
Use Apache commons IOUtils rather than our own
Diffstat (limited to 'main/src/cgeo/geocaching/utils')
| -rw-r--r-- | main/src/cgeo/geocaching/utils/IOUtils.java | 24 | ||||
| -rw-r--r-- | main/src/cgeo/geocaching/utils/Log.java | 1 |
2 files changed, 1 insertions, 24 deletions
diff --git a/main/src/cgeo/geocaching/utils/IOUtils.java b/main/src/cgeo/geocaching/utils/IOUtils.java deleted file mode 100644 index 8e483d3..0000000 --- a/main/src/cgeo/geocaching/utils/IOUtils.java +++ /dev/null @@ -1,24 +0,0 @@ -package cgeo.geocaching.utils; - -import org.eclipse.jdt.annotation.Nullable; - -import java.io.Closeable; -import java.io.IOException; - -final public class IOUtils { - - private IOUtils() { - // utility class - } - - public static void closeQuietly(@Nullable final Closeable closeable) { - if (closeable != null) { - try { - closeable.close(); - } catch (final IOException e) { - Log.w("closeQuietly: unable to close " + closeable, e); - } - } - } - -} diff --git a/main/src/cgeo/geocaching/utils/Log.java b/main/src/cgeo/geocaching/utils/Log.java index 1ade2f9..8f96f10 100644 --- a/main/src/cgeo/geocaching/utils/Log.java +++ b/main/src/cgeo/geocaching/utils/Log.java @@ -1,5 +1,6 @@ package cgeo.geocaching.utils; +import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.CharEncoding; import android.os.Environment; |
