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/03/13 18:14:13 UTC

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

Felix Meschberger created FELIX-3970:
----------------------------------------

             Summary: 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