[
https://issues.apache.org/jira/browse/CASSANDRA-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dave Brosius updated CASSANDRA-3046:
------------------------------------
Attachment: enum_equality.diff
> [patch] No need to use .equals on enums, just opens up chance of NPE
> --------------------------------------------------------------------
>
> Key: CASSANDRA-3046
> URL: https://issues.apache.org/jira/browse/CASSANDRA-3046
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Dave Brosius
> Priority: Trivial
> Attachments: enum_equality.diff
>
>
> pretty trivial patch that change enum1.equals(enum2) into enum1 == enum2, as
> .equals isn't needed, and just opens up the possibility of NPEs where ==
> handles them correctly.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira