You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2021/02/10 15:32:00 UTC

[jira] [Created] (KAFKA-12321) the comparison function for uuid type should be 'equals' rather than '=='

Chia-Ping Tsai created KAFKA-12321:
--------------------------------------

             Summary: the comparison function for uuid type should be 'equals' rather than '=='
                 Key: KAFKA-12321
                 URL: https://issues.apache.org/jira/browse/KAFKA-12321
             Project: Kafka
          Issue Type: Bug
            Reporter: Chia-Ping Tsai


trunk:
{code:java}
if (this.taggedUuid != Uuid.fromString("H3KKO4NTRPaCWtEmm3vW7A"))
{code}

expected:
{code:java}
if (!this.taggedUuid.equals(Uuid.fromString("H3KKO4NTRPaCWtEmm3vW7A")))
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)