TisonKun commented on a change in pull request #9607: [FLINK-13946] Remove job 
session related code from ExecutionEnvironment
URL: https://github.com/apache/flink/pull/9607#discussion_r320787256
 
 

 ##########
 File path: 
flink-clients/src/main/java/org/apache/flink/client/LocalExecutor.java
 ##########
 @@ -77,11 +70,11 @@
        // 
------------------------------------------------------------------------
 
        public LocalExecutor() {
-               this(null);
+               this(new Configuration());
        }
 
        public LocalExecutor(Configuration conf) {
-               this.baseConfiguration = conf != null ? conf : new 
Configuration();
+               this.baseConfiguration = checkNotNull(conf);
 
 Review comment:
   @aljoscha thanks for your input. I agree that we could both make use of 
compile time constraint for internal development and place runtime checker when 
input may be from outside.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to