-
-
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
Integrity checker improvements #2349
Conversation
# Conflicts: # src/main/java/net/sf/jabref/gui/actions/IntegrityCheckAction.java
I did a quick check and it appears to work. |
Uhh... Browsing this from my mobile I'm not Sure... But @tobiasdiez you have closed the PR and not merged it 😉 |
public synchronized Optional<BibEntry> getEntryById(String id) { | ||
for (BibEntry entry : entries) { | ||
if (entry.getId().equals(id)) { | ||
return Optional.of(entry); |
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.
Stream with findFirst or findAny
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.
You can directly edit this if you find it more intuitive.
Anything that needs to be changed here? |
From my point of view, it's good. I merge it in |
Follow up for #1779
Linking to Bibentries inside the integrity checker should be done via a reference to the entry not the key.