diff --git a/jablib/src/main/java/org/jabref/logic/quality/consistency/BibliographyConsistencyCheck.java b/jablib/src/main/java/org/jabref/logic/quality/consistency/BibliographyConsistencyCheck.java index 3e9fc421d69..8e36e545140 100644 --- a/jablib/src/main/java/org/jabref/logic/quality/consistency/BibliographyConsistencyCheck.java +++ b/jablib/src/main/java/org/jabref/logic/quality/consistency/BibliographyConsistencyCheck.java @@ -127,7 +127,7 @@ public Result check(BibDatabaseContext bibContext, BiConsumer 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 resultMap = new LinkedHashMap<>(); int counter = 0; @@ -195,7 +195,7 @@ private static void collectEntriesIntoMaps(BibDatabaseContext bibContext, Map new java.util.LinkedHashSet<>()) + .computeIfAbsent(entryType, _ -> new HashSet<>()) .add(entry); } }