KeywordCollection: Use linkedHashSetValues to prevent duplicates (#8941)

This commit is contained in:
Hans Mackowiak
2025-10-17 17:55:46 +02:00
committed by GitHub
parent 5588268c74
commit bbf5319815

View File

@@ -15,7 +15,7 @@ public class KeywordCollection implements Iterable<KeywordInterface> {
private transient KeywordCollectionView view;
// don't use enumKeys it causes a slow down
private final Multimap<Keyword, KeywordInterface> map = MultimapBuilder.hashKeys()
.arrayListValues().build();
.linkedHashSetValues().build();
public KeywordCollection() {
super();