- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
public final class SqliteWrapper {
private static final String SQLITE_EXCEPTION_DETAIL_MESSAGE
= "unable to open database file";
...
// FIXME: need to optimize this method.
private static boolean isLowMemory(SQLiteException e) {
return e.getMessage().equals(SQLITE_EXCEPTION_DETAIL_MESSAGE);
}
...
}
Похоже в гугле затесался говнокодер :))