Skip to content

Fix change on disk detection#442

Draft
koppor wants to merge 4 commits into
mainfrom
fix-change-on-disk-detection
Draft

Fix change on disk detection#442
koppor wants to merge 4 commits into
mainfrom
fix-change-on-disk-detection

Conversation

@koppor

@koppor koppor commented Jul 27, 2020

Copy link
Copy Markdown
Member

Follow-up from JabRef#6694

- Add tests
- Guard AtomicFileWriter with a try-with-resources during save
- use Objects.requireNonNull in DefaultFileUpdateMontitor
- add comment
- some auto-formattings
- Fix typo in comment
TODO:

- Add test
- saved flag local in the update monitor

DONE:

- After a synchronization is triggered: the referenceFile is updated with the current database
- Synchronize change detection and file writing: should not happen in parallel
- Use !Thread.currentThread().isInterrupted() instead of true in endless loop in thread
@koppor koppor changed the title Add repository explanation and remove all source codeAdd tests for changed Fix change on disk detection Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant