Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6535

Remove storageFactory field from subclasses of InputStreamFile

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 10.11.1.1
    • 10.11.1.1
    • Store
    • None

    Description

      The InputStreamFile class has a field called storageFactory which holds the BaseStorageFactory instance that created it. This field is accessible by all subclasses of InputStream. Still, each subclass has its own storageFactory field which shadows the field in the parent class and holds a reference to the exact same factory instance as the parent.

      I'd like to remove the extra fields in the subclasses in order to simply the code and silence IDE warnings about the shadowing.

      Attachments

        1. d6535-1a.diff
          8 kB
          Knut Anders Hatlen

        Activity

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: