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)