hive-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/HIVE-9160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Navis updated HIVE-9160:
------------------------
    Attachment:     (was: HIVE-9160.1.patch.txt)

> Suspicious comparing logic in LazyPrimitive
> -------------------------------------------
>
>                 Key: HIVE-9160
>                 URL: https://issues.apache.org/jira/browse/HIVE-9160
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Navis
>            Assignee: Navis
>            Priority: Minor
>         Attachments: HIVE-9160.1.patch.txt
>
>
> {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