Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
31b0e817
Commit
31b0e817
authored
Jan 27, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add @FunctionalInterface to remaining public and protected interfaces
See gh-6857
parent
3d52c86a
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
33 additions
and
20 deletions
+33
-20
HeapdumpMvcEndpoint.java
...mework/boot/actuate/endpoint/mvc/HeapdumpMvcEndpoint.java
+1
-0
NamePatternFilter.java
...ramework/boot/actuate/endpoint/mvc/NamePatternFilter.java
+2
-2
ReservoirFactory.java
...ork/boot/actuate/metrics/dropwizard/ReservoirFactory.java
+2
-1
SimpleInMemoryRepository.java
...k/boot/actuate/metrics/util/SimpleInMemoryRepository.java
+2
-1
AutoConfigurationImportFilter.java
...ork/boot/autoconfigure/AutoConfigurationImportFilter.java
+1
-0
AutoConfigurationImportListener.java
...k/boot/autoconfigure/AutoConfigurationImportListener.java
+1
-0
ClusterBuilderCustomizer.java
...oot/autoconfigure/cassandra/ClusterBuilderCustomizer.java
+2
-1
HttpClientConfigBuilderCustomizer.java
...elasticsearch/jest/HttpClientConfigBuilderCustomizer.java
+2
-1
IgnoredRequestCustomizer.java
...boot/autoconfigure/security/IgnoredRequestCustomizer.java
+2
-1
UserInfoRestTemplateFactory.java
...security/oauth2/resource/UserInfoRestTemplateFactory.java
+1
-0
PlatformTransactionManagerCustomizer.java
...ure/transaction/PlatformTransactionManagerCustomizer.java
+2
-1
DefaultTestExecutionListenersPostProcessor.java
...t/context/DefaultTestExecutionListenersPostProcessor.java
+2
-1
TreeVisitor.java
...configurationprocessor/fieldvalues/javac/TreeVisitor.java
+1
-2
CustomLoaderLayout.java
...springframework/boot/loader/tools/CustomLoaderLayout.java
+2
-1
LayoutFactory.java
.../org/springframework/boot/loader/tools/LayoutFactory.java
+2
-1
Repackager.java
...ava/org/springframework/boot/loader/tools/Repackager.java
+1
-0
JarEntryFilter.java
...a/org/springframework/boot/loader/jar/JarEntryFilter.java
+1
-2
BeanDefinitionLoader.java
...n/java/org/springframework/boot/BeanDefinitionLoader.java
+2
-2
PropertyNamePatternsMatcher.java
...pringframework/boot/bind/PropertyNamePatternsMatcher.java
+1
-2
ConfigurationWarningsApplicationContextInitializer.java
...t/ConfigurationWarningsApplicationContextInitializer.java
+1
-0
EntityManagerFactoryBuilder.java
...ngframework/boot/orm/jpa/EntityManagerFactoryBuilder.java
+2
-1
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HeapdumpMvcEndpoint.java
View file @
31b0e817
...
@@ -168,6 +168,7 @@ public class HeapdumpMvcEndpoint extends AbstractNamedMvcEndpoint {
...
@@ -168,6 +168,7 @@ public class HeapdumpMvcEndpoint extends AbstractNamedMvcEndpoint {
/**
/**
* Strategy interface used to dump the heap to a file.
* Strategy interface used to dump the heap to a file.
*/
*/
@FunctionalInterface
protected
interface
HeapDumper
{
protected
interface
HeapDumper
{
/**
/**
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/NamePatternFilter.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -76,7 +76,7 @@ abstract class NamePatternFilter<T> {
...
@@ -76,7 +76,7 @@ abstract class NamePatternFilter<T> {
/**
/**
* Callback used to add a name.
* Callback used to add a name.
*/
*/
protected
interface
NameCallback
{
interface
NameCallback
{
void
addName
(
String
name
);
void
addName
(
String
name
);
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/ReservoirFactory.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -26,6 +26,7 @@ import com.codahale.metrics.Reservoir;
...
@@ -26,6 +26,7 @@ import com.codahale.metrics.Reservoir;
* @author Phillip Webb
* @author Phillip Webb
* @since 1.5.0
* @since 1.5.0
*/
*/
@FunctionalInterface
public
interface
ReservoirFactory
{
public
interface
ReservoirFactory
{
/**
/**
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/util/SimpleInMemoryRepository.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -102,6 +102,7 @@ public class SimpleInMemoryRepository<T> {
...
@@ -102,6 +102,7 @@ public class SimpleInMemoryRepository<T> {
*
*
* @param <T> the value type
* @param <T> the value type
*/
*/
@FunctionalInterface
public
interface
Callback
<
T
>
{
public
interface
Callback
<
T
>
{
/**
/**
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationImportFilter.java
View file @
31b0e817
...
@@ -39,6 +39,7 @@ import org.springframework.context.ResourceLoaderAware;
...
@@ -39,6 +39,7 @@ import org.springframework.context.ResourceLoaderAware;
* @author Phillip Webb
* @author Phillip Webb
* @since 1.5.0
* @since 1.5.0
*/
*/
@FunctionalInterface
public
interface
AutoConfigurationImportFilter
{
public
interface
AutoConfigurationImportFilter
{
/**
/**
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationImportListener.java
View file @
31b0e817
...
@@ -41,6 +41,7 @@ import org.springframework.context.ResourceLoaderAware;
...
@@ -41,6 +41,7 @@ import org.springframework.context.ResourceLoaderAware;
* @author Phillip Webb
* @author Phillip Webb
* @since 1.5.0
* @since 1.5.0
*/
*/
@FunctionalInterface
public
interface
AutoConfigurationImportListener
extends
EventListener
{
public
interface
AutoConfigurationImportListener
extends
EventListener
{
/**
/**
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cassandra/ClusterBuilderCustomizer.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -27,6 +27,7 @@ import com.datastax.driver.core.Cluster.Builder;
...
@@ -27,6 +27,7 @@ import com.datastax.driver.core.Cluster.Builder;
* @author Eddú Meléndez
* @author Eddú Meléndez
* @since 1.5.0
* @since 1.5.0
*/
*/
@FunctionalInterface
public
interface
ClusterBuilderCustomizer
{
public
interface
ClusterBuilderCustomizer
{
/**
/**
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/elasticsearch/jest/HttpClientConfigBuilderCustomizer.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -27,6 +27,7 @@ import io.searchbox.client.config.HttpClientConfig.Builder;
...
@@ -27,6 +27,7 @@ import io.searchbox.client.config.HttpClientConfig.Builder;
* @author Stephane Nicoll
* @author Stephane Nicoll
* @since 1.5.0
* @since 1.5.0
*/
*/
@FunctionalInterface
public
interface
HttpClientConfigBuilderCustomizer
{
public
interface
HttpClientConfigBuilderCustomizer
{
/**
/**
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/IgnoredRequestCustomizer.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -25,6 +25,7 @@ import org.springframework.security.config.annotation.web.builders.WebSecurity.I
...
@@ -25,6 +25,7 @@ import org.springframework.security.config.annotation.web.builders.WebSecurity.I
* @author Madhura Bhave
* @author Madhura Bhave
* @since 1.5.0
* @since 1.5.0
*/
*/
@FunctionalInterface
public
interface
IgnoredRequestCustomizer
{
public
interface
IgnoredRequestCustomizer
{
/**
/**
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/resource/UserInfoRestTemplateFactory.java
View file @
31b0e817
...
@@ -26,6 +26,7 @@ import org.springframework.security.oauth2.client.OAuth2RestTemplate;
...
@@ -26,6 +26,7 @@ import org.springframework.security.oauth2.client.OAuth2RestTemplate;
* @author Stephane Nicoll
* @author Stephane Nicoll
* @since 1.4.0
* @since 1.4.0
*/
*/
@FunctionalInterface
public
interface
UserInfoRestTemplateFactory
{
public
interface
UserInfoRestTemplateFactory
{
/**
/**
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/PlatformTransactionManagerCustomizer.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -27,6 +27,7 @@ import org.springframework.transaction.PlatformTransactionManager;
...
@@ -27,6 +27,7 @@ import org.springframework.transaction.PlatformTransactionManager;
* @author Phillip Webb
* @author Phillip Webb
* @since 1.5.0
* @since 1.5.0
*/
*/
@FunctionalInterface
public
interface
PlatformTransactionManagerCustomizer
<
T
extends
PlatformTransactionManager
>
{
public
interface
PlatformTransactionManagerCustomizer
<
T
extends
PlatformTransactionManager
>
{
/**
/**
...
...
spring-boot-test/src/main/java/org/springframework/boot/test/context/DefaultTestExecutionListenersPostProcessor.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -29,6 +29,7 @@ import org.springframework.test.context.TestExecutionListener;
...
@@ -29,6 +29,7 @@ import org.springframework.test.context.TestExecutionListener;
* @since 1.4.1
* @since 1.4.1
* @see SpringBootTest
* @see SpringBootTest
*/
*/
@FunctionalInterface
public
interface
DefaultTestExecutionListenersPostProcessor
{
public
interface
DefaultTestExecutionListenersPostProcessor
{
/**
/**
...
...
spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/fieldvalues/javac/TreeVisitor.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -22,7 +22,6 @@ package org.springframework.boot.configurationprocessor.fieldvalues.javac;
...
@@ -22,7 +22,6 @@ package org.springframework.boot.configurationprocessor.fieldvalues.javac;
* @author Phillip Webb
* @author Phillip Webb
* @since 1.2.0
* @since 1.2.0
*/
*/
@FunctionalInterface
interface
TreeVisitor
{
interface
TreeVisitor
{
void
visitVariable
(
VariableTree
variable
)
throws
Exception
;
void
visitVariable
(
VariableTree
variable
)
throws
Exception
;
...
...
spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/CustomLoaderLayout.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -25,6 +25,7 @@ import java.io.IOException;
...
@@ -25,6 +25,7 @@ import java.io.IOException;
* @author Phillip Webb
* @author Phillip Webb
* @since 1.5.0
* @since 1.5.0
*/
*/
@FunctionalInterface
public
interface
CustomLoaderLayout
{
public
interface
CustomLoaderLayout
{
/**
/**
...
...
spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/LayoutFactory.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -24,6 +24,7 @@ import java.io.File;
...
@@ -24,6 +24,7 @@ import java.io.File;
* @author Dave Syer
* @author Dave Syer
* @author Phillip Webb
* @author Phillip Webb
*/
*/
@FunctionalInterface
public
interface
LayoutFactory
{
public
interface
LayoutFactory
{
/**
/**
...
...
spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Repackager.java
View file @
31b0e817
...
@@ -404,6 +404,7 @@ public class Repackager {
...
@@ -404,6 +404,7 @@ public class Repackager {
* Callback interface used to present a warning when finding the main class takes too
* Callback interface used to present a warning when finding the main class takes too
* long.
* long.
*/
*/
@FunctionalInterface
public
interface
MainClassTimeoutWarningListener
{
public
interface
MainClassTimeoutWarningListener
{
/**
/**
...
...
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarEntryFilter.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -21,7 +21,6 @@ package org.springframework.boot.loader.jar;
...
@@ -21,7 +21,6 @@ package org.springframework.boot.loader.jar;
*
*
* @author Phillip Webb
* @author Phillip Webb
*/
*/
@FunctionalInterface
interface
JarEntryFilter
{
interface
JarEntryFilter
{
/**
/**
...
...
spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -326,7 +326,7 @@ class BeanDefinitionLoader {
...
@@ -326,7 +326,7 @@ class BeanDefinitionLoader {
/**
/**
* Source for Bean definitions defined in Groovy.
* Source for Bean definitions defined in Groovy.
*/
*/
protected
interface
GroovyBeanDefinitionSource
{
interface
GroovyBeanDefinitionSource
{
Closure
<?>
getBeans
();
Closure
<?>
getBeans
();
...
...
spring-boot/src/main/java/org/springframework/boot/bind/PropertyNamePatternsMatcher.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
4
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -22,7 +22,6 @@ package org.springframework.boot.bind;
...
@@ -22,7 +22,6 @@ package org.springframework.boot.bind;
* @author Phillip Webb
* @author Phillip Webb
* @since 1.2.0
* @since 1.2.0
*/
*/
@FunctionalInterface
interface
PropertyNamePatternsMatcher
{
interface
PropertyNamePatternsMatcher
{
PropertyNamePatternsMatcher
ALL
=
new
PropertyNamePatternsMatcher
()
{
PropertyNamePatternsMatcher
ALL
=
new
PropertyNamePatternsMatcher
()
{
...
...
spring-boot/src/main/java/org/springframework/boot/context/ConfigurationWarningsApplicationContextInitializer.java
View file @
31b0e817
...
@@ -114,6 +114,7 @@ public class ConfigurationWarningsApplicationContextInitializer
...
@@ -114,6 +114,7 @@ public class ConfigurationWarningsApplicationContextInitializer
/**
/**
* A single check that can be applied.
* A single check that can be applied.
*/
*/
@FunctionalInterface
protected
interface
Check
{
protected
interface
Check
{
/**
/**
...
...
spring-boot/src/main/java/org/springframework/boot/orm/jpa/EntityManagerFactoryBuilder.java
View file @
31b0e817
/*
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -220,6 +220,7 @@ public class EntityManagerFactoryBuilder {
...
@@ -220,6 +220,7 @@ public class EntityManagerFactoryBuilder {
/**
/**
* A callback for new entity manager factory beans created by a Builder.
* A callback for new entity manager factory beans created by a Builder.
*/
*/
@FunctionalInterface
public
interface
EntityManagerFactoryBeanCallback
{
public
interface
EntityManagerFactoryBeanCallback
{
void
execute
(
LocalContainerEntityManagerFactoryBean
factory
);
void
execute
(
LocalContainerEntityManagerFactoryBean
factory
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment