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 (Updated) (JIRA)" <ji...@apache.org> on 2012/02/23 14:09:48 UTC

[jira] [Updated] (DERBY-5627) Remove unused methods in UUID classes

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

Knut Anders Hatlen updated DERBY-5627:
--------------------------------------

    Attachment: d5627-1a.diff

Attaching a patch that removes the methods. It also removes the call to the otherwise unused recreateUUID() method from T_UUIDFactory.

All the regression tests ran cleanly with the patch.
                
> Remove unused methods in UUID classes
> -------------------------------------
>
>                 Key: DERBY-5627
>                 URL: https://issues.apache.org/jira/browse/DERBY-5627
>             Project: Derby
>          Issue Type: Improvement
>          Components: Services
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Trivial
>         Attachments: d5627-1a.diff
>
>
> The UUIDFactory and UUID interfaces (and their implementations) contain some unused methods that could be removed:
> UUIDFactory/BasicUUIDFactory: The method recreateUUID(byte[]) is not used, except in a unit test (T_UUIDFactory)
> UUID/BasicUUID: The methods toByteArray() and toHexString() are never called, and the constructor BasicUUID(byte[]) is only called by the unused recreateUUID() factory method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira