Annotate interfaces with @FunctionaInterface
Closes gh-6857
This commit is contained in:
committed by
Andy Wilkinson
parent
6d70c061de
commit
3d52c86a21
@@ -27,6 +27,7 @@ import org.springframework.boot.devtools.filewatch.ChangedFile;
|
||||
* @since 1.3.0
|
||||
* @see PatternClassPathRestartStrategy
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface ClassPathRestartStrategy {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ import java.util.Set;
|
||||
* @author Phillip Webb
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface FileChangeListener {
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,6 +22,7 @@ package org.springframework.boot.devtools.filewatch;
|
||||
* @author Phillip Webb
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface FileSystemWatcherFactory {
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@ import org.springframework.http.server.ServerHttpRequest;
|
||||
* @author Phillip Webb
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface AccessManager {
|
||||
|
||||
/**
|
||||
|
||||
@@ -27,6 +27,7 @@ import org.springframework.http.server.ServerHttpResponse;
|
||||
* @author Phillip Webb
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Handler {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ import org.springframework.http.server.ServerHttpRequest;
|
||||
* @author Phillip Webb
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface HandlerMapper {
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,6 +22,7 @@ package org.springframework.boot.devtools.restart;
|
||||
* @author Phillip Webb
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface FailureHandler {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ import java.net.URL;
|
||||
* @since 1.3.0
|
||||
* @see DefaultRestartInitializer
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface RestartInitializer {
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,6 +22,7 @@ package org.springframework.boot.devtools.restart;
|
||||
* @author Andy Wilkinson
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface RestartListener {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ package org.springframework.boot.devtools.restart.classloader;
|
||||
* @since 1.3.0
|
||||
* @see ClassLoaderFile
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface ClassLoaderFileRepository {
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,6 +26,7 @@ import java.net.URL;
|
||||
* @since 1.3.0
|
||||
* @see DefaultSourceFolderUrlFilter
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface SourceFolderUrlFilter {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ import java.nio.channels.WritableByteChannel;
|
||||
* @author Phillip Webb
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface TunnelConnection {
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,6 +23,7 @@ package org.springframework.boot.devtools.tunnel.server;
|
||||
* @author Phillip Webb
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface PortProvider {
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,6 +25,7 @@ import java.nio.channels.ByteChannel;
|
||||
* @author Phillip Webb
|
||||
* @since 1.3.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface TargetServerConnection {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user