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] [Created] (FELIX-3970) Remove unneeded hashCode and equals methods from PrinterMode
Date Wed, 13 Mar 2013 17:14:13 GMT
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

View raw message