db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (DERBY-6535) Remove storageFactory field from subclasses of InputStreamFile
Date Tue, 01 Apr 2014 12:48:14 GMT

     [ https://issues.apache.org/jira/browse/DERBY-6535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Knut Anders Hatlen closed DERBY-6535.

          Resolution: Fixed
       Fix Version/s:
    Issue & fix info:   (was: Patch Available)

> Remove storageFactory field from subclasses of InputStreamFile
> --------------------------------------------------------------
>                 Key: DERBY-6535
>                 URL: https://issues.apache.org/jira/browse/DERBY-6535
>             Project: Derby
>          Issue Type: Improvement
>          Components: Store
>    Affects Versions:
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Trivial
>             Fix For:
>         Attachments: d6535-1a.diff
> 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.

This message was sent by Atlassian JIRA

View raw message