Annotate interfaces with @FunctionaInterface

Closes gh-6857
This commit is contained in:
Eddú Meléndez
2016-09-09 19:29:15 -05:00
committed by Andy Wilkinson
parent 6d70c061de
commit 3d52c86a21
76 changed files with 76 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ import org.springframework.boot.devtools.filewatch.ChangedFile;
* @since 1.3.0
* @see PatternClassPathRestartStrategy
*/
@FunctionalInterface
public interface ClassPathRestartStrategy {
/**

View File

@@ -25,6 +25,7 @@ import java.util.Set;
* @author Phillip Webb
* @since 1.3.0
*/
@FunctionalInterface
public interface FileChangeListener {
/**

View File

@@ -22,6 +22,7 @@ package org.springframework.boot.devtools.filewatch;
* @author Phillip Webb
* @since 1.3.0
*/
@FunctionalInterface
public interface FileSystemWatcherFactory {
/**

View File

@@ -24,6 +24,7 @@ import org.springframework.http.server.ServerHttpRequest;
* @author Phillip Webb
* @since 1.3.0
*/
@FunctionalInterface
public interface AccessManager {
/**

View File

@@ -27,6 +27,7 @@ import org.springframework.http.server.ServerHttpResponse;
* @author Phillip Webb
* @since 1.3.0
*/
@FunctionalInterface
public interface Handler {
/**

View File

@@ -25,6 +25,7 @@ import org.springframework.http.server.ServerHttpRequest;
* @author Phillip Webb
* @since 1.3.0
*/
@FunctionalInterface
public interface HandlerMapper {
/**

View File

@@ -22,6 +22,7 @@ package org.springframework.boot.devtools.restart;
* @author Phillip Webb
* @since 1.3.0
*/
@FunctionalInterface
public interface FailureHandler {
/**

View File

@@ -25,6 +25,7 @@ import java.net.URL;
* @since 1.3.0
* @see DefaultRestartInitializer
*/
@FunctionalInterface
public interface RestartInitializer {
/**

View File

@@ -22,6 +22,7 @@ package org.springframework.boot.devtools.restart;
* @author Andy Wilkinson
* @since 1.3.0
*/
@FunctionalInterface
public interface RestartListener {
/**

View File

@@ -25,6 +25,7 @@ package org.springframework.boot.devtools.restart.classloader;
* @since 1.3.0
* @see ClassLoaderFile
*/
@FunctionalInterface
public interface ClassLoaderFileRepository {
/**

View File

@@ -26,6 +26,7 @@ import java.net.URL;
* @since 1.3.0
* @see DefaultSourceFolderUrlFilter
*/
@FunctionalInterface
public interface SourceFolderUrlFilter {
/**

View File

@@ -25,6 +25,7 @@ import java.nio.channels.WritableByteChannel;
* @author Phillip Webb
* @since 1.3.0
*/
@FunctionalInterface
public interface TunnelConnection {
/**

View File

@@ -23,6 +23,7 @@ package org.springframework.boot.devtools.tunnel.server;
* @author Phillip Webb
* @since 1.3.0
*/
@FunctionalInterface
public interface PortProvider {
/**

View File

@@ -25,6 +25,7 @@ import java.nio.channels.ByteChannel;
* @author Phillip Webb
* @since 1.3.0
*/
@FunctionalInterface
public interface TargetServerConnection {
/**