-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Minor refinements on Consistency Check #13771
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -127,7 +127,7 @@ public Result check(BibDatabaseContext bibContext, BiConsumer<Integer, Integer> | |||
| entryTypeDefinitions = BibtexEntryTypeDefinitions.ALL; | ||||
| } | ||||
|
|
||||
| // Use LinkedHashMap to preserve the order of Bib*EntryTypeDefinitions.ALL | ||||
| // Use LinkedHashMap to preserve the order of Bib(tex|latex)EntryTypeDefinitions.ALL | ||||
| Map<EntryType, EntryTypeResult> resultMap = new LinkedHashMap<>(); | ||||
|
|
||||
| int counter = 0; | ||||
|
|
@@ -195,7 +195,7 @@ private static void collectEntriesIntoMaps(BibDatabaseContext bibContext, Map<En | |||
| } | ||||
|
|
||||
| entryTypeToEntriesMap | ||||
| .computeIfAbsent(entryType, _ -> new java.util.LinkedHashSet<>()) | ||||
| .computeIfAbsent(entryType, _ -> new HashSet<>()) | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LInkedHashSet preserves insertion order
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but isn't a sort happening later anyway at jabref/jablib/src/main/java/org/jabref/logic/quality/consistency/BibliographyConsistencyCheck.java Line 164 in 5f30d81
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Therefore, I a) read the code, thought through and b) relied in the test cases (which I also checked) |
||||
| .add(entry); | ||||
| } | ||||
| } | ||||
|
|
||||
Uh oh!
There was an error while loading. Please reload this page.