Bruno P. Kinoshita created POOL-246:
---------------------------------------
Summary: [PATCH] Follow same pattern in
ErodingKeyedObjectPool#toString as in other pool objects
Key: POOL-246
URL: https://issues.apache.org/jira/browse/POOL-246
Project: Commons Pool
Issue Type: Improvement
Reporter: Bruno P. Kinoshita
Priority: Trivial
Hello!
In ErodingObjectPool, the toString method outputs:
ErodingObjectPool{factor=$FACTOR, pool=$POOL}
And in ErodingPerKeyKeyedObjectPool it outputs:
ErodingPerKeyKeyedObjectPool{factor=, keyedPool=$POOL}
However, in ErodingKeyedObjectPool, the factor has a different prefix:
ErodingKeyedObjectPool{erodingFactor=$FACTOR, keyedPool=$POOL}
This proposed patch follows the same pattern as in the aforementioned pools and
changes ErodingKeyedObjectPool#toString.
Please, note that POOL-244 contains tests that may fail due to this change, so
during the merge it may be good to take a look at
TestPoolUtils#testErodingPoolKeyedObjectPoolDefaultFactor to avoid build errors.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)