rajucomp commented on code in PR #374:
URL: https://github.com/apache/commons-pool/pull/374#discussion_r1890318467
##########
src/test/java/org/apache/commons/pool3/impl/TestSoftReferenceObjectPool.java:
##########
@@ -26,23 +26,23 @@
*/
public class TestSoftReferenceObjectPool extends TestBaseObjectPool {
- private static final class SimpleFactory extends
BasePooledObjectFactory<String, RuntimeException> {
+ private static final class SimpleFactory <T, E extends Exception> extends
BasePooledObjectFactory<T, E> {
int counter;
@Override
- public String create() {
- return String.valueOf(counter++);
+ public T create() {
+ return (T)String.valueOf(counter++);
Review Comment:
Yeah. That will be cleaned up.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]