Skip to content

Commit 3d52c86

Browse files
eddumelendezwilkinsona
authored andcommitted
Annotate interfaces with @FunctionaInterface
Closes gh-6857
1 parent 6d70c06 commit 3d52c86

File tree

76 files changed

+76
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+76
-0
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/CacheStatisticsProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* @author Phillip Webb
2828
* @since 1.3.0
2929
*/
30+
@FunctionalInterface
3031
public interface CacheStatisticsProvider<C extends Cache> {
3132

3233
/**

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/PublicMetrics.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* @author Dave Syer
3030
* @see SystemPublicMetrics SystemPublicMetrics for an example implementation
3131
*/
32+
@FunctionalInterface
3233
public interface PublicMetrics {
3334

3435
/**

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerMappingCustomizer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* @author Dave Syer
2323
* @since 1.2.0
2424
*/
25+
@FunctionalInterface
2526
public interface EndpointHandlerMappingCustomizer {
2627

2728
/**

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/ManagementServletContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* @author Phillip Webb
2323
* @since 1.3.0
2424
*/
25+
@FunctionalInterface
2526
public interface ManagementServletContext {
2627

2728
/**

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/HealthAggregator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* @author Christian Dupuis
3535
* @since 1.1.0
3636
*/
37+
@FunctionalInterface
3738
public interface HealthAggregator {
3839

3940
/**

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/HealthIndicator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* @author Dave Syer
2323
* @see ApplicationHealthIndicator
2424
*/
25+
@FunctionalInterface
2526
public interface HealthIndicator {
2627

2728
/**

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/InfoContributor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* @author Stephane Nicoll
2323
* @since 1.4.0
2424
*/
25+
@FunctionalInterface
2526
public interface InfoContributor {
2627

2728
/**

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/GaugeService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
*
2828
* @author Dave Syer
2929
*/
30+
@FunctionalInterface
3031
public interface GaugeService {
3132

3233
/**

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/Exporter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* @author Dave Syer
2828
* @since 1.3.0
2929
*/
30+
@FunctionalInterface
3031
public interface Exporter {
3132

3233
/**

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/opentsdb/OpenTsdbNamingStrategy.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* @author Dave Syer
2323
* @since 1.3.0
2424
*/
25+
@FunctionalInterface
2526
public interface OpenTsdbNamingStrategy {
2627

2728
/**

0 commit comments

Comments
 (0)