You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "ZhangWei (Jira)" <ji...@apache.org> on 2021/03/24 07:14:00 UTC

[jira] [Created] (FLINK-21943) Redundant checkNotNull

ZhangWei created FLINK-21943:
--------------------------------

             Summary: Redundant checkNotNull
                 Key: FLINK-21943
                 URL: https://issues.apache.org/jira/browse/FLINK-21943
             Project: Flink
          Issue Type: Improvement
          Components: API / Core
    Affects Versions: 1.12.2
            Reporter: ZhangWei


In org.apache.flink.api.dag.Transformation#setResources(ResourceSpec minResources, ResourceSpec preferredResources),

we have already checked that the parameters are not null by 
calling OperatorValidationUtils#validateMinAndPreferredResources.

so it is not necessary to check again in setResources(
) , just assign the parameters.



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