You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "sagar sukhadev chavan (JIRA)" <ji...@apache.org> on 2017/11/18 20:52:00 UTC

[jira] [Created] (KAFKA-6233) Removed unnecessary null check

sagar sukhadev chavan created KAFKA-6233:
--------------------------------------------

             Summary: Removed unnecessary null check
                 Key: KAFKA-6233
                 URL: https://issues.apache.org/jira/browse/KAFKA-6233
             Project: Kafka
          Issue Type: New Feature
          Components: clients
    Affects Versions: 0.11.0.2, 1.0.0, 0.10.2.1, 0.10.1.1
            Reporter: sagar sukhadev chavan
            Priority: Trivial


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)