[jira] [Created] (FLINK-8105) Removed unnecessary null check

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-8105) Removed unnecessary null check

Shang Yuanchun (Jira)
Hai Zhou UTC+8 created FLINK-8105:
-------------------------------------

             Summary: Removed unnecessary null check
                 Key: FLINK-8105
                 URL: https://issues.apache.org/jira/browse/FLINK-8105
             Project: Flink
          Issue Type: Improvement
          Components: Checkstyle
    Affects Versions: 1.4.0
            Reporter: Hai Zhou UTC+8
            Assignee: Hai Zhou UTC+8
            Priority: Minor
             Fix For: 1.5.0


eg.
{code:java}
if (value != null && value instanceof String)
{code}

null instanceof String returns false hence replaced the check with

{code:java}
if (value instanceof String)
{code}



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