[
https://issues.apache.org/jira/browse/FLINK-21943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Weijie Guo updated FLINK-21943:
-------------------------------
Summary: Redundant checkNotNull in Transformation#setResources (was:
Redundant checkNotNull)
> Redundant checkNotNull in Transformation#setResources
> -----------------------------------------------------
>
> Key: FLINK-21943
> URL: https://issues.apache.org/jira/browse/FLINK-21943
> Project: Flink
> Issue Type: Improvement
> Components: API / Core
> Affects Versions: 1.20.0
> Reporter: ZhangWei
> Priority: Minor
> Labels: pull-request-available
>
> 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.20.10#820010)