From 3f7e44105b42f404d78143570cf1236de96c0307 Mon Sep 17 00:00:00 2001 From: Raju Kumar Gupta Date: Wed, 18 Dec 2024 14:45:33 +0000 Subject: [PATCH] [POOL-238] Add Supression Warnings --- .../apache/commons/pool3/impl/TestSoftReferenceObjectPool.java | 1 + 1 file changed, 1 insertion(+) 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());