You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2013/06/06 17:35:28 UTC

[jira] [Closed] (FELIX-3970) Remove unneeded hashCode and equals methods from PrinterMode

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

Felix Meschberger closed FELIX-3970.
------------------------------------


Close after release
                
> Remove unneeded hashCode and equals methods from PrinterMode
> ------------------------------------------------------------
>
>                 Key: FELIX-3970
>                 URL: https://issues.apache.org/jira/browse/FELIX-3970
>             Project: Felix
>          Issue Type: Task
>          Components: Inventory
>    Affects Versions: inventory-1.0.0
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: inventory-1.0.0
>
>
> PrinterMode has hashCode and equals methods which are not required: There are only three instances of this class whose construction is controlled because it is a type safe enum.
> To compare, the Object.equals method comparing just the references and the Object.hashCode giving some object identity are enough.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira