This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git


The following commit(s) were added to refs/heads/master by this push:
     new 893fe404 Annotate Converter with @FunctionalInterface
893fe404 is described below

commit 893fe4048f866bf061ff41defe62eb1cfdd79dc5
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jan 1 07:45:49 2024 -0500

    Annotate Converter with @FunctionalInterface
---
 src/changes/changes.xml                                    | 3 +++
 src/main/java/org/apache/commons/beanutils2/Converter.java | 1 +
 2 files changed, 4 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 2c11d853..f269dec3 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -116,6 +116,9 @@
       <action dev="ggregory" type="fix" due-to="Gary Gregory">
         Avoid possible NPE in DateTimeConverter.parse(Class, Class, String).
       </action>
+      <action dev="ggregory" type="fix" due-to="Claude Warren, Gary Gregory">
+        Annotate Converter with @FunctionalInterface.
+      </action>
       <!-- ADD -->
       <action dev="ggregory" type="add" due-to="Dependabot, Gary Gregory">
         Add github/codeql-action #118.
diff --git a/src/main/java/org/apache/commons/beanutils2/Converter.java 
b/src/main/java/org/apache/commons/beanutils2/Converter.java
index 7283a084..20af059c 100644
--- a/src/main/java/org/apache/commons/beanutils2/Converter.java
+++ b/src/main/java/org/apache/commons/beanutils2/Converter.java
@@ -33,6 +33,7 @@ package org.apache.commons.beanutils2;
  * @param <T> the convert type.
  * @since 1.3
  */
+@FunctionalInterface
 public interface Converter<T> {
 
     /**

Reply via email to