Re: Preparing a release

2020-12-28 Thread Lukasz Lenart
niedz., 27 gru 2020 o 21:14 Bernd Eckenfels napisaƂ(a): > I would say if the maven release plugin and the maven pgp plug-ins work (on > your system and for the Pom) and the project builds on al l supported > platforms, go for it. If you have your ASF login and thenPgpg key in the Keys > file yo

Re: [lang] ObjectUtils enhancement - consumer with non-null value

2020-12-28 Thread Gary Gregory
Hi Bindul, Let's see what this would look like with a PR :-) Gary On Mon, Dec 28, 2020, 01:23 Bindul Bhowmik wrote: > Hi, > > I would like to propose an enhancement to the ObjectUtils class in lang: > > Background: I have seen multiple places in code where we have to check > if a value is null

Re: [lang] ObjectUtils enhancement - consumer with non-null value

2020-12-28 Thread Rob Spoor
applyIfNonNull looks to be a version of Optional without the Optional object. The following is the same as suggested but with an additional Optional object: Optional.ofNullable(valueX).ifPresent(bean::setValue); Optional.ofNullable(valueX).ifPresent(v -> someObject.compute(v, "bar"));

Re: [lang] ObjectUtils enhancement - consumer with non-null value

2020-12-28 Thread Bindul Bhowmik
Gary, LANG-1634 [1] and PR 684 [2] opened for review. Rob - yes exactly. I have found myself writing that utility method multiple times, and almost all of those projects had commons-lang as a dependency, so figured this would be a good place to have this reusable piece of code. Bindul [1] https