diff options
| author | Bananeweizen <Bananeweizen@gmx.de> | 2013-10-02 21:27:14 +0200 |
|---|---|---|
| committer | Bananeweizen <Bananeweizen@gmx.de> | 2013-10-02 21:27:14 +0200 |
| commit | 9fe7014575b418f2ca3e456001299d0ca7966057 (patch) | |
| tree | 751fc58b802c60c4edad9a0ae02906b7f4f8f382 /main/src/cgeo/geocaching/files/LocalStorage.java | |
| parent | fa619131bfd3d5cf5286b958ff88c6a225989ec9 (diff) | |
| download | cgeo-9fe7014575b418f2ca3e456001299d0ca7966057.zip cgeo-9fe7014575b418f2ca3e456001299d0ca7966057.tar.gz cgeo-9fe7014575b418f2ca3e456001299d0ca7966057.tar.bz2 | |
refactoring: findbugs cleanups
Diffstat (limited to 'main/src/cgeo/geocaching/files/LocalStorage.java')
| -rw-r--r-- | main/src/cgeo/geocaching/files/LocalStorage.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/files/LocalStorage.java b/main/src/cgeo/geocaching/files/LocalStorage.java index 40684f8..edbecf6 100644 --- a/main/src/cgeo/geocaching/files/LocalStorage.java +++ b/main/src/cgeo/geocaching/files/LocalStorage.java @@ -7,6 +7,7 @@ import cgeo.geocaching.utils.Log; import ch.boye.httpclientandroidlib.Header; import ch.boye.httpclientandroidlib.HttpResponse; + import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.eclipse.jdt.annotation.Nullable; @@ -37,6 +38,7 @@ import java.util.List; */ public final class LocalStorage { + private static final String FILE_SYSTEM_TABLE_PATH = "/system/etc/vold.fstab"; public static final String HEADER_LAST_MODIFIED = "last-modified"; public static final String HEADER_ETAG = "etag"; @@ -424,7 +426,7 @@ public final class LocalStorage { String extStorage = Environment.getExternalStorageDirectory().getAbsolutePath(); List<File> storages = new ArrayList<File>(); storages.add(new File(extStorage)); - File file = new File("/system/etc/vold.fstab"); + File file = new File(FILE_SYSTEM_TABLE_PATH); if (file.canRead()) { Reader fr = null; BufferedReader br = null; |
