diff options
| author | Bananeweizen <Bananeweizen@gmx.de> | 2012-12-29 19:16:31 +0100 |
|---|---|---|
| committer | Bananeweizen <Bananeweizen@gmx.de> | 2012-12-30 09:50:35 +0100 |
| commit | cb94f1f020596be019cc4c000a93a318600d7f37 (patch) | |
| tree | 42708485b581bc243dcc9a89f49680e9296a3599 /main/src/cgeo/geocaching/files/FileList.java | |
| parent | 8ab924a6c016c0129cccaffa546a896892f36dcc (diff) | |
| download | cgeo-cb94f1f020596be019cc4c000a93a318600d7f37.zip cgeo-cb94f1f020596be019cc4c000a93a318600d7f37.tar.gz cgeo-cb94f1f020596be019cc4c000a93a318600d7f37.tar.bz2 | |
refactoring: findbugs
Diffstat (limited to 'main/src/cgeo/geocaching/files/FileList.java')
| -rw-r--r-- | main/src/cgeo/geocaching/files/FileList.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/main/src/cgeo/geocaching/files/FileList.java b/main/src/cgeo/geocaching/files/FileList.java index 19d3305..990d2ae 100644 --- a/main/src/cgeo/geocaching/files/FileList.java +++ b/main/src/cgeo/geocaching/files/FileList.java @@ -8,6 +8,7 @@ import cgeo.geocaching.utils.Log; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; +import org.mapsforge.core.IOUtils; import android.app.ProgressDialog; import android.content.DialogInterface; @@ -242,15 +243,8 @@ public abstract class FileList<T extends ArrayAdapter<File>> extends AbstractLis Log.e("Could not get additional mount points for user content. " + "Proceeding with external storage only (" + extStorage + ")"); } finally { - try { - if (fr != null) { - fr.close(); - } - if (br != null) { - br.close(); - } - } catch (IOException e) { - } + IOUtils.closeQuietly(fr); + IOUtils.closeQuietly(br); } } return storages; |
