Skip to content

Commit 3bbc963

Browse files
committed
Fix JDK 1.8 compilation problem
1 parent 44e528b commit 3bbc963

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/main/java/com/cloudbees/plugins/flow/FlowRun.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public BuildFlow getBuildFlow() {
134134
}
135135

136136
public void doGetDot(StaplerRequest req, StaplerResponse rsp) throws IOException {
137-
new DOTExporter().export(rsp.getWriter(), jobsGraph);
137+
new DOTExporter<JobInvocation, JobEdge>().export(rsp.getWriter(), jobsGraph);
138138
}
139139

140140
public synchronized void addBuild(JobInvocation job) throws ExecutionException, InterruptedException {

Diff for: src/test/java/com/cloudbees/plugin/flow/TestDSLExtension.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
public class TestDSLExtension extends BuildFlowDSLExtension {
3939
@Override
4040
public Object createExtension(String extensionName, FlowDelegate dsl) {
41-
Map m = new TreeMap();
41+
Map<String, Object> m = new TreeMap<String, Object>();
4242
m.put("dsl",dsl);
4343
m.put("name",extensionName);
4444
return m;

0 commit comments

Comments
 (0)