Skip to content
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

Merged
merged 4 commits into from
Dec 12, 2016
Merged

Integrity checker improvements #2349

merged 4 commits into from
Dec 12, 2016

Conversation

stefan-kolb
Copy link
Member

Follow up for #1779

Linking to Bibentries inside the integrity checker should be done via a reference to the entry not the key.

  • Focus by Id rather than Bibtexkey
  • Also the field Bibtexkey can now be focused. I changed the internal list from unmodifiable and returned another unmodifiable list. This needs some close examination in my opinion as I'm not 100% sure if I introduced any side effects. Please also test the feature if it is still working as expected.

@stefan-kolb stefan-kolb added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Dec 8, 2016
# Conflicts:
#	src/main/java/net/sf/jabref/gui/actions/IntegrityCheckAction.java
@tobiasdiez tobiasdiez closed this Dec 9, 2016
@tobiasdiez tobiasdiez deleted the integrity-checker branch December 9, 2016 00:27
@tobiasdiez
Copy link
Member

I did a quick check and it appears to work.

@matthiasgeiger
Copy link
Member

Uhh... Browsing this from my mobile I'm not Sure... But @tobiasdiez you have closed the PR and not merged it 😉

@matthiasgeiger matthiasgeiger restored the integrity-checker branch December 9, 2016 08:57
@matthiasgeiger matthiasgeiger reopened this Dec 9, 2016
public synchronized Optional<BibEntry> getEntryById(String id) {
for (BibEntry entry : entries) {
if (entry.getId().equals(id)) {
return Optional.of(entry);
Copy link
Member

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

Copy link
Member Author

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.

@stefan-kolb
Copy link
Member Author

Anything that needs to be changed here?

@Siedlerchr
Copy link
Member

From my point of view, it's good. I merge it in

@Siedlerchr Siedlerchr merged commit 59d9e35 into master Dec 12, 2016
@Siedlerchr Siedlerchr deleted the integrity-checker branch December 12, 2016 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants