Annotate core functional SPIs in SpEL with @FunctionalInterface

Prior to this commit, only the MethodFilter and ConstructorResolver
functional SPIs in the org.springframework.expression package were
annotated with @⁠FunctionalInterface.

For consistency, this commit designates each of the following
functional SPIs in that package as a @⁠FunctionalInterface as well.

- BeanResolver
- ConstructorExecutor
- MethodExecutor
- MethodResolver

Closes gh-32135
This commit is contained in:
Sam Brannen 2024-01-26 14:46:05 +01:00
parent 5b5319a659
commit 500767a0fb
4 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,7 @@ package org.springframework.expression;
* @author Andy Clement * @author Andy Clement
* @since 3.0.3 * @since 3.0.3
*/ */
@FunctionalInterface
public interface BeanResolver { public interface BeanResolver {
/** /**

View File

@ -37,6 +37,7 @@ package org.springframework.expression;
* @see ConstructorResolver * @see ConstructorResolver
* @see MethodExecutor * @see MethodExecutor
*/ */
@FunctionalInterface
public interface ConstructorExecutor { public interface ConstructorExecutor {
/** /**

View File

@ -36,6 +36,7 @@ package org.springframework.expression;
* @see MethodResolver * @see MethodResolver
* @see ConstructorExecutor * @see ConstructorExecutor
*/ */
@FunctionalInterface
public interface MethodExecutor { public interface MethodExecutor {
/** /**

View File

@ -34,6 +34,7 @@ import org.springframework.lang.Nullable;
* @see MethodExecutor * @see MethodExecutor
* @see ConstructorResolver * @see ConstructorResolver
*/ */
@FunctionalInterface
public interface MethodResolver { public interface MethodResolver {
/** /**