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

Knut Anders Hatlen updated DERBY-6505:
--------------------------------------

    Attachment: d6505-2a.diff

I noticed that one of the copyDirectory() methods in FileUtil was shown as not 
covered by the tests in JaCoCo, even though it has callers. It turns out that 
it is only used in soft upgrade from versions prior to 10.9, and only if 
backing up a database that contains jar files.

The attached patch (d6505-2a.diff) adds code to the Changes10_9 upgrade test to 
exercise that method.

> Clean up dead code in FileUtil
> ------------------------------
>
>                 Key: DERBY-6505
>                 URL: https://issues.apache.org/jira/browse/DERBY-6505
>             Project: Derby
>          Issue Type: Improvement
>          Components: Services
>    Affects Versions: 10.11.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: d6505-1a.diff, d6505-2a.diff
>
>
> The iapi.services.io.FileUtil class contains many methods that are no longer 
> in use. We should remove those methods.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to