[jira] [Created] (FLINK-18406) Annotate DualKeyLinkedMap with @Nullable annotation

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

[jira] [Created] (FLINK-18406) Annotate DualKeyLinkedMap with @Nullable annotation

Shang Yuanchun (Jira)
Till Rohrmann created FLINK-18406:
-------------------------------------

             Summary: Annotate DualKeyLinkedMap with @Nullable annotation
                 Key: FLINK-18406
                 URL: https://issues.apache.org/jira/browse/FLINK-18406
             Project: Flink
          Issue Type: Improvement
          Components: Runtime / Coordination
    Affects Versions: 1.11.0, 1.12.0
            Reporter: Till Rohrmann
            Assignee: Till Rohrmann
             Fix For: 1.12.0


In order to avoid wrong usage of {{DualKeyLinkedMap}} I think we should annotate those methods which can return a {{null}} value. That way, the IDE can help highlighting were we access values without proper null checks.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)