kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guozhang Wang (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KAFKA-6233) Removed unnecessary null check
Date Sun, 19 Nov 2017 18:56:00 GMT

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

Guozhang Wang resolved KAFKA-6233.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.1.0

Issue resolved by pull request 4232
[https://github.com/apache/kafka/pull/4232]

> Removed unnecessary null check
> ------------------------------
>
>                 Key: KAFKA-6233
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6233
>             Project: Kafka
>          Issue Type: Improvement
>          Components: clients
>    Affects Versions: 0.10.1.1, 0.10.2.1, 1.0.0, 0.11.0.2
>            Reporter: sagar sukhadev chavan
>            Priority: Trivial
>             Fix For: 1.1.0
>
>
> Removed unnecessary null check
> if (encodingValue != null && encodingValue instanceof String)
> null instanceof String returns false hence replaced the check with
> if (encodingValue instanceof String)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message