[ 
https://issues.apache.org/jira/browse/FLINK-21943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Weijie Guo closed FLINK-21943.
------------------------------
    Fix Version/s: 1.20.0
       Resolution: Done

master(1.20) via 8a18b119c958568d58f346c0e0868784a0ab9653.

> 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
>             Fix For: 1.20.0
>
>
> 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)

Reply via email to