TisonKun commented on a change in pull request #10235: [FLINK-14839][config] 
Let JobGraph#classpaths become non-null
URL: https://github.com/apache/flink/pull/10235#discussion_r349414138
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobGraph.java
 ##########
 @@ -352,8 +353,8 @@ public JobVertex findVertexByID(JobVertexID id) {
         *
         * @param paths paths of the directories/JAR files required to run the 
job on a task manager
         */
-       public void setClasspaths(List<URL> paths) {
-               classpaths = paths;
+       public void addClasspaths(Collection<URL> paths) {
+               classpaths.addAll(paths);
        }
 
        public List<URL> getClasspaths() {
 
 Review comment:
   Make sense to return an unmodifiableList

----------------------------------------------------------------
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