Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Operating System: All
Platform: All
-
38649
Description
The GenericObjectPools both have a package scoped inner class named
ObjectTimestampPair. This inner class can be static, which saves a reference
back to it's parent class and a very small bit of overhead. Once they are static
then the same implementation can be shared between the two GenericObjectPools.
This patch does just that. Since ObjectTimestampPair inner class is package
scoped this won't have any affect on API compatability.
FindBugs http://findbugs.sourceforge.net/ deserves credit for detecting that the
inner class could be static.