kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "XiaoXiang Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (KYLIN-3582) String comparison should not use == in RecordEvent
Date Tue, 25 Sep 2018 01:25:00 GMT

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

XiaoXiang Yu updated KYLIN-3582:
--------------------------------
    Fix Version/s: v2.5.1
                   v2.4.2

> String comparison should not use == in RecordEvent
> --------------------------------------------------
>
>                 Key: KYLIN-3582
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3582
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: XiaoXiang Yu
>            Priority: Minor
>             Fix For: v2.4.2, v2.5.1
>
>
> Here is related code:
> {code}
>             for (RecordReserveKeyEnum reserveKey : RecordReserveKeyEnum.values()) {
>                 if (reserveKey.reserveKey == key) {
> {code}
> equals() should be used to compare Strings.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message