throw new IOException(
JGitText.get().couldNotRenameTemporaryIndexFileToIndex);
changed = false;
statDirty = false;
lastCacheTime = cacheFile.lastModified();
db.fireEvent(new IndexChangedEvent());
} finally {
if (!lock.delete())
throw new IOException(
JGitText.get().couldNotDeleteLockFileShouldNotHappen);
if (tmpIndex.exists() && !tmpIndex.delete())