Skip to content

Commit a856625

Browse files
authored
Use vanilla hashset (#13771)
1 parent 5f30d81 commit a856625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jablib/src/main/java/org/jabref/logic/quality/consistency/BibliographyConsistencyCheck.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public Result check(BibDatabaseContext bibContext, BiConsumer<Integer, Integer>
127127
entryTypeDefinitions = BibtexEntryTypeDefinitions.ALL;
128128
}
129129

130-
// Use LinkedHashMap to preserve the order of Bib*EntryTypeDefinitions.ALL
130+
// Use LinkedHashMap to preserve the order of Bib(tex|latex)EntryTypeDefinitions.ALL
131131
Map<EntryType, EntryTypeResult> resultMap = new LinkedHashMap<>();
132132

133133
int counter = 0;
@@ -195,7 +195,7 @@ private static void collectEntriesIntoMaps(BibDatabaseContext bibContext, Map<En
195195
}
196196

197197
entryTypeToEntriesMap
198-
.computeIfAbsent(entryType, _ -> new java.util.LinkedHashSet<>())
198+
.computeIfAbsent(entryType, _ -> new HashSet<>())
199199
.add(entry);
200200
}
201201
}

0 commit comments

Comments
 (0)