Skip to content

Apache Lucene open-source search software

fix unchecked warning

Uwe Schindlereacade77107d
diff --git a/src/test/org/apache/lucene/util/cache/TestSimpleLRUCache.java b/src/test/org/apache/lucene/util/cache/TestSimpleLRUCache.java
index 825f990026f..4183046c29f 100644
--- a/src/test/org/apache/lucene/util/cache/TestSimpleLRUCache.java
+++ b/src/test/org/apache/lucene/util/cache/TestSimpleLRUCache.java
@@ -21,6 +21,6 @@ package org.apache.lucene.util.cache;
public class TestSimpleLRUCache extends BaseTestLRU {
public void testLRUCache() throws Exception {
final int n = 100;
- testCache(new SimpleLRUCache(n), n);
+ testCache(new SimpleLRUCache<Integer,Object>(n), n);
}
}