felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FELIX-3970) Remove unneeded hashCode and equals methods from PrinterMode
Date Thu, 06 Jun 2013 15:35:28 GMT

     [ 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

Mime
View raw message