cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-470) ByteToken equality test should be based on value
Date Mon, 05 Oct 2009 12:31:32 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762160#action_12762160
] 

Jonathan Ellis commented on CASSANDRA-470:
------------------------------------------

BytesToken overrides equals:

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj)
            return true;
        if (!(obj instanceof BytesToken))
            return false;
        BytesToken other = (BytesToken) obj;
        return Arrays.equals(token, other.token);
    }

Is there some bug keeping this from being invoked?

> ByteToken equality test should be based on value
> ------------------------------------------------
>
>                 Key: CASSANDRA-470
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-470
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Jun Rao
>            Assignee: Jun Rao
>            Priority: Minor
>         Attachments: issue470.patchv1
>
>
> ByteToken equality tests should be based on value of the byte array, instead of object
ID.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message