Re: [BEANUTILS] Is there a good reason for Converter to not be a FunctionalInterface?

2024-01-01 Thread Gary Gregory
In git master: Annotated Converter with @FunctionalInterface. Gary On Fri, Dec 29, 2023 at 3:12 AM Claude Warren wrote: > > I am looking at BeanUtils as part of the CLI options to parse a command > line option string into a class. > > I see that Converter is an interface with one method; convert

Re: [BEANUTILS] Is there a good reason for Converter to not be a FunctionalInterface?

2023-12-29 Thread Gary Gregory
Also https://issues.apache.org/jira/browse/BEANUTILS-564 Gary On Fri, Dec 29, 2023 at 7:02 AM Gary Gregory wrote: > > Also: > > - BeanIntrospector > - LocaleConverter > > Gary > > On Fri, Dec 29, 2023 at 6:56 AM Gary Gregory wrote: > > > > No reason aside from the fact that the code base is not

Re: [BEANUTILS] Is there a good reason for Converter to not be a FunctionalInterface?

2023-12-29 Thread Gary Gregory
Also: - BeanIntrospector - LocaleConverter Gary On Fri, Dec 29, 2023 at 6:56 AM Gary Gregory wrote: > > No reason aside from the fact that the code base is not fully > modernized. You could also ask if Converter should extend BiFunction. > > I would like to create a release candidate for a 2.0.

Re: [BEANUTILS] Is there a good reason for Converter to not be a FunctionalInterface?

2023-12-29 Thread Gary Gregory
No reason aside from the fact that the code base is not fully modernized. You could also ask if Converter should extend BiFunction. I would like to create a release candidate for a 2.0.0-M1 release soon. This would unlock a lot of other work down the line. One item holding us back is that BeanUti

Re: [BEANUTILS] Is there a good reason for Converter to not be a FunctionalInterface?

2023-12-29 Thread Paul King
The 1.9.x releases are pre-JDK 8. The project looks set up for a 2.0 release where such a change might make sense but I don't think that has happened yet. Cheers, Paul. On Fri, Dec 29, 2023 at 6:12 PM Claude Warren wrote: > > I am looking at BeanUtils as part of the CLI options to parse a comman

[BEANUTILS] Is there a good reason for Converter to not be a FunctionalInterface?

2023-12-29 Thread Claude Warren
I am looking at BeanUtils as part of the CLI options to parse a command line option string into a class. I see that Converter is an interface with one method; converting a String to an Object. Is there a good reason for this not to be annotated as an @FunctionalInterface? Claude -- LinkedIn: ht