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)

Reply via email to