diff --git a/src/test/java/org/apache/commons/pool3/impl/TestSoftReferenceObjectPool.java b/src/test/java/org/apache/commons/pool3/impl/TestSoftReferenceObjectPool.java index 035a0b165..0c72b58b5 100644 --- a/src/test/java/org/apache/commons/pool3/impl/TestSoftReferenceObjectPool.java +++ b/src/test/java/org/apache/commons/pool3/impl/TestSoftReferenceObjectPool.java @@ -56,6 +56,7 @@ protected boolean isLifo() { return false; } + @SuppressWarnings("unchecked") @Override protected ObjectPool makeEmptyPool(final int cap) { return (ObjectPool) new SoftReferenceObjectPool<>(new SimpleFactory());