in simplestore/src/main/java/com/uber/simplestore/impl/AtomicFile.java [113:126]
public void finishWrite(@Nullable FileOutputStream str) {
if (str == null) {
return;
}
if (!sync(str)) {
Log.e(LOG_TAG, "Failed to sync file output stream");
}
try {
str.close();
} catch (IOException e) {
Log.e(LOG_TAG, "Failed to close file output stream");
}
rename(mNewName, mBaseName);
}