-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some OO/LO cleanups #1927
Some OO/LO cleanups #1927
Conversation
@@ -1366,13 +1366,13 @@ public BibDatabase generateDatabase(List<BibDatabase> databases) | |||
BibEntry clonedEntry = (BibEntry) entry.get().clone(); | |||
clonedEntry.setId(IdGenerator.next()); | |||
// Insert a copy of the entry | |||
resultDatabase.insertEntryWithDuplicationCheck(clonedEntry); | |||
resultDatabase.insertEntry(clonedEntry); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering: Is it save to remove the duplication check here? The documentation of insertEntryWithDuplicationCheck
says use insertEntry and DuplicationChecker separately
.
The comment also applies to the replacement below.
Apart from the clarification above: LGTM! |
Well the duplication check just returns a boolean and as that is not checked here it shouldn't make any functional difference. If it was a good idea in the first place is another question though... |
LGTM 👍 |
* master: Remove obsolete wrapper task Added error dialog when setting invalid main file directory (#1921) Add filteringCharset = 'UTF-8' (#1945) Include https://github.com/grimes2 Searchbar across all bib files instead each having its own (#1549) Some OO/LO cleanups (#1927) Update link Removed external dependency in logic (#1934)
* master: Remove obsolete wrapper task Added error dialog when setting invalid main file directory (JabRef#1921) Add filteringCharset = 'UTF-8' (JabRef#1945) Include https://github.com/grimes2 Searchbar across all bib files instead each having its own (JabRef#1549) Some OO/LO cleanups (JabRef#1927) Update link Removed external dependency in logic (JabRef#1934)
Removed deprecated calls, renamed a few variables, and restructured the code a bit.