hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navis (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-9160) Suspicious comparing logic in LazyPrimitive
Date Thu, 18 Dec 2014 06:56:13 GMT
Navis created HIVE-9160:
---------------------------

             Summary: Suspicious comparing logic in LazyPrimitive
                 Key: HIVE-9160
                 URL: https://issues.apache.org/jira/browse/HIVE-9160
             Project: Hive
          Issue Type: Bug
            Reporter: Navis
            Priority: Minor


{code}
  @Override
  public boolean equals(Object obj) {
    if (!(obj instanceof LazyPrimitive<?, ?>)) {
      return false;
    }

    if (data == obj) {
      return true;
    }

    if (data == null || obj == null) {
      return false;
    }

    return data.equals(((LazyPrimitive<?, ?>) obj).getWritableObject());
  }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message