You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "ivan Qing (Jira)" <ji...@apache.org> on 2022/08/27 05:20:00 UTC
[jira] [Created] (FLINK-29124) Redundant checkNotNull in cli Package
ivan Qing created FLINK-29124:
---------------------------------
Summary: Redundant checkNotNull in cli Package
Key: FLINK-29124
URL: https://issues.apache.org/jira/browse/FLINK-29124
Project: Flink
Issue Type: Improvement
Components: Command Line Client
Reporter: ivan Qing
Redundant NotNull checks in function cli/CliFrontend.
{*}getEffectiveConfiguration{*}():
{code:java}
final ExecutionConfigAccessor executionParameters = ExecutionConfigAccessor.fromProgramOptions( checkNotNull(programOptions), checkNotNull(jobJars));
{code}
while *ExecutionConfigAccessor.fromProgramOptions* indeed does the notNull check
{code:java}
public static <T> ExecutionConfigAccessor fromProgramOptions(
final ProgramOptions options,
final List<T> jobJars) {
checkNotNull(options);
checkNotNull(jobJars);
...
} {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)