diff --git a/lucene/core/src/java/org/apache/lucene/search/Multiset.java b/lucene/core/src/java/org/apache/lucene/search/Multiset.java index ff346512eff..5fbb3b38486 100644 --- a/lucene/core/src/java/org/apache/lucene/search/Multiset.java +++ b/lucene/core/src/java/org/apache/lucene/search/Multiset.java @@ -87,6 +87,7 @@ final class Multiset extends AbstractCollection { } @Override + @SuppressWarnings("unchecked") public boolean remove(Object o) { final Integer count = map.get(o); if (count == null) {