kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sagar sukhadev chavan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-6233) Removed unnecessary null check
Date Sat, 18 Nov 2017 20:52:00 GMT
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:, 1.0.0,,
            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

View raw message