Skip to content

Commit

Permalink
[FLINK-11544] [rest] Add Nullable annotation to PackagedProgramUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
uce authored and rmetzger committed Feb 14, 2019
1 parent 4de10bb commit 70f1362
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import org.apache.flink.optimizer.plantranslate.JobGraphGenerator;
import org.apache.flink.runtime.jobgraph.JobGraph;

import javax.annotation.Nullable;

import java.net.URISyntaxException;
import java.net.URL;

Expand All @@ -54,7 +56,7 @@ public static JobGraph createJobGraph(
PackagedProgram packagedProgram,
Configuration configuration,
int defaultParallelism,
JobID jobID) throws ProgramInvocationException {
@Nullable JobID jobID) throws ProgramInvocationException {
Thread.currentThread().setContextClassLoader(packagedProgram.getUserCodeClassLoader());
final Optimizer optimizer = new Optimizer(new DataStatistics(), new DefaultCostEstimator(), configuration);
final FlinkPlan flinkPlan;
Expand Down

0 comments on commit 70f1362

Please sign in to comment.