commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38649] New: - [pool] Generic[Keyed]ObjectPool.ObjectTimestampPair can be static and can be shared
Date Wed, 15 Feb 2006 06:24:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38649>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38649

           Summary: [pool] Generic[Keyed]ObjectPool.ObjectTimestampPair can
                    be static and can be shared
           Product: Commons
           Version: unspecified
          Platform: All
               URL: http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper
                    /pool/trunk/src/java/org/apache/commons/pool/impl/
        OS/Version: All
            Status: NEW
          Keywords: PatchAvailable
          Severity: enhancement
          Priority: P4
         Component: Pool
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: Sandy@McArthur.org


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.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message