Sebb created POOL-221:
-------------------------
Summary: PooledObject.state does not need to be volatile
Key: POOL-221
URL: https://issues.apache.org/jira/browse/POOL-221
Project: Commons Pool
Issue Type: Bug
Reporter: Sebb
The field PooledObject.state is volatile, but is also always accessed in a
synchronised method except in toString().
The volatile modifier is not cost free; it might be better to remove it and add
a small synch. block in toString().
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira