You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2014/04/01 14:48:14 UTC

[jira] [Closed] (DERBY-6535) Remove storageFactory field from subclasses of InputStreamFile

     [ 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: 10.11.0.0
    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: 10.11.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Trivial
>             Fix For: 10.11.0.0
>
>         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
(v6.2#6252)