Uploaded image for project: 'Commons Pool'
  1. Commons Pool
  2. POOL-63

[pool] Generic[Keyed]ObjectPool.ObjectTimestampPair can be static and can be shared

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.3
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sandymac@apache.org Sandy McArthur (from Bugzilla import)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: