Refine contribution #3934
* Add default methods in all listener interfaces * Remove usage of newly deprecated support classes Issue #3924
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2018 the original author or authors.
|
||||
* Copyright 2006-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -144,7 +144,7 @@ public class StepRunner {
|
||||
// Dump the given Job ExecutionContext using a listener
|
||||
//
|
||||
if (jobExecutionContext != null && !jobExecutionContext.isEmpty()) {
|
||||
job.setJobExecutionListeners(new JobExecutionListener[] { new JobExecutionListenerSupport() {
|
||||
job.setJobExecutionListeners(new JobExecutionListener[] { new JobExecutionListener() {
|
||||
@Override
|
||||
public void beforeJob(JobExecution jobExecution) {
|
||||
ExecutionContext jobContext = jobExecution.getExecutionContext();
|
||||
|
||||
Reference in New Issue
Block a user