Skip to content

Commit ed945ca

Browse files
acktsapfmbenhassine
authored andcommitted
Add @FunctionalInterface where appropriate
Resolves #4107
1 parent 8b6343f commit ed945ca

File tree

16 files changed

+46
-15
lines changed

16 files changed

+46
-15
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/JobParametersIncrementer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323
* @author Dave Syer
2424
* @author Lucas Ward
2525
* @author Mahmoud Ben Hassine
26+
* @author Taeik Lim
2627
* @since 2.0
2728
*/
29+
@FunctionalInterface
2830
public interface JobParametersIncrementer {
2931

3032
/**

spring-batch-core/src/main/java/org/springframework/batch/core/JobParametersValidator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323
*
2424
* @author Dave Syer
2525
* @author Mahmoud Ben Hassine
26+
* @author Taeik Lim
2627
*
2728
*/
29+
@FunctionalInterface
2830
public interface JobParametersValidator {
2931

3032
/**

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2018 the original author or authors.
2+
* Copyright 2006-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,8 +27,10 @@
2727
*
2828
* @author Dave Syer
2929
* @author Mahmoud Ben Hassine
30+
* @author Taeik Lim
3031
* @since 2.0
3132
*/
33+
@FunctionalInterface
3234
public interface JobExecutionDecider {
3335

3436
/**

spring-batch-core/src/main/java/org/springframework/batch/core/launch/JobLauncher.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2007 the original author or authors.
2+
* Copyright 2006-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,8 +32,9 @@
3232
*
3333
* @author Lucas Ward
3434
* @author Dave Syer
35+
* @author Taeik Lim
3536
*/
36-
37+
@FunctionalInterface
3738
public interface JobLauncher {
3839

3940
/**

spring-batch-core/src/main/java/org/springframework/batch/core/partition/PartitionHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2021 the original author or authors.
2+
* Copyright 2006-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -30,8 +30,10 @@
3030
*
3131
* @author Dave Syer
3232
* @author Mahmoud Ben Hassine
33+
* @author Taeik Lim
3334
* @since 2.0
3435
*/
36+
@FunctionalInterface
3537
public interface PartitionHandler {
3638

3739
/**

spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/Partitioner.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2007 the original author or authors.
2+
* Copyright 2006-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,8 +27,10 @@
2727
* unique filenames.
2828
*
2929
* @author Dave Syer
30+
* @author Taeik Lim
3031
* @since 2.0
3132
*/
33+
@FunctionalInterface
3234
public interface Partitioner {
3335

3436
/**

spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/StepExecutionAggregator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2008-2009 the original author or authors.
2+
* Copyright 2008-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,9 +24,11 @@
2424
* partitioned or remote execution.
2525
*
2626
* @author Dave Syer
27+
* @author Taeik Lim
2728
* @since 2.1
2829
*
2930
*/
31+
@FunctionalInterface
3032
public interface StepExecutionAggregator {
3133

3234
/**

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2007 the original author or authors.
2+
* Copyright 2006-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,8 +20,10 @@
2020
* itself cannot be modified to properly override equals.
2121
*
2222
* @author Dave Syer
23+
* @author Taeik Lim
2324
*
2425
*/
26+
@FunctionalInterface
2527
public interface KeyGenerator {
2628

2729
Object getKey(Object item);

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2010 the original author or authors.
2+
* Copyright 2006-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,8 +23,10 @@
2323
* Strategy interface for translating a {@link StepExecution} into {@link JobParameters}.
2424
*
2525
* @author Dave Syer
26+
* @author Taeik Lim
2627
*
2728
*/
29+
@FunctionalInterface
2830
public interface JobParametersExtractor {
2931

3032
/**

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2021 the original author or authors.
2+
* Copyright 2006-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,9 @@
2121
* @author Lucas Ward
2222
* @author Dave Syer
2323
* @author Mahmoud Ben Hassine
24+
* @author Taeik Lim
2425
*/
26+
@FunctionalInterface
2527
public interface SkipPolicy {
2628

2729
/**

0 commit comments

Comments
 (0)