Skip to content

Commit 9b3b899

Browse files
Remove *Aware interfaces from Micrometer
1 parent adbc39a commit 9b3b899

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/job/AbstractJob.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@
6868
* @author Dave Syer
6969
* @author Mahmoud Ben Hassine
7070
*/
71-
public abstract class AbstractJob implements Job, StepLocator, BeanNameAware, InitializingBean,
72-
Observation.KeyValuesProviderAware<BatchJobKeyValuesProvider> {
71+
public abstract class AbstractJob implements Job, StepLocator, BeanNameAware, InitializingBean {
7372

7473
protected static final Log logger = LogFactory.getLog(AbstractJob.class);
7574

@@ -434,7 +433,6 @@ private void updateStatus(JobExecution jobExecution, BatchStatus status) {
434433
jobRepository.update(jobExecution);
435434
}
436435

437-
@Override
438436
public void setKeyValuesProvider(BatchJobKeyValuesProvider keyValuesProvider) {
439437
this.keyValuesProvider = keyValuesProvider;
440438
}

spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@
6060
* @author Chris Schaefer
6161
* @author Mahmoud Ben Hassine
6262
*/
63-
public abstract class AbstractStep
64-
implements Step, InitializingBean, BeanNameAware, Observation.KeyValuesProviderAware<BatchStepTagsProvider> {
63+
public abstract class AbstractStep implements Step, InitializingBean, BeanNameAware {
6564

6665
private static final Log logger = LogFactory.getLog(AbstractStep.class);
6766

@@ -419,7 +418,6 @@ else if (ex instanceof NoSuchJobException || ex.getCause() instanceof NoSuchJobE
419418
return exitStatus;
420419
}
421420

422-
@Override
423421
public void setKeyValuesProvider(BatchStepTagsProvider keyValuesProvider) {
424422
this.keyValuesProvider = keyValuesProvider;
425423
}

0 commit comments

Comments
 (0)