[ANNOUNCE] Apache Commons Lang 3.18.0

2025-07-10 Thread Gary Gregory
The Apache Commons Lang team is pleased to announce the release of Apache Commons Lang 3.18.0. Commons Lang is a set of utility functions and reusable components that should be useful in any Java environment. Starting with Commons Lang 3.9, we target Java 8. For advice on upgrading from 2.x to

[RESULT][VOTE] Release Apache Commons Lang 3.18.0 based on RC2

2025-07-09 Thread Gary Gregory
t; - Reports good > > Thank you Gary for all you do! > > > On Jul 6, 2025, at 1:51 PM, Gary Gregory wrote: > > > > We have fixed a few bugs and added enhancements since Apache Commons > > Lang 3.17.0 was released, so I would like to release Apache Commons > &g

Re: [VOTE] Release Apache Commons Lang 3.18.0 based on RC2

2025-07-07 Thread Rob Tompkins
+1 - Site good - Tests on java 8, 11, 17, 21 - Signatures good - Reports good Thank you Gary for all you do! > On Jul 6, 2025, at 1:51 PM, Gary Gregory wrote: > > We have fixed a few bugs and added enhancements since Apache Commons > Lang 3.17.0 was released, so I would lik

Re: [VOTE] Release Apache Commons Lang 3.18.0 based on RC2

2025-07-07 Thread Gary Gregory
My +1 Gary On Sun, Jul 6, 2025, 13:51 Gary Gregory wrote: > We have fixed a few bugs and added enhancements since Apache Commons > Lang 3.17.0 was released, so I would like to release Apache Commons > Lang 3.18.0. > > Apache Commons Lang 3.18.0 RC2 is available for review he

Re: [VOTE] Release Apache Commons Lang 3.18.0 based on RC2

2025-07-06 Thread Piotr P. Karwasz
this release because... +1 (binding), release the artifacts. I have reviewed the release candidate available at: https://dist.apache.org/repos/dist/dev/commons/lang/3.18.0-RC2/source I performed the following checks: - Verified checksums and signatures. - Successfully rebuilt the source release a

[VOTE] Release Apache Commons Lang 3.18.0 based on RC2

2025-07-06 Thread Gary Gregory
We have fixed a few bugs and added enhancements since Apache Commons Lang 3.17.0 was released, so I would like to release Apache Commons Lang 3.18.0. Apache Commons Lang 3.18.0 RC2 is available for review here: https://dist.apache.org/repos/dist/dev/commons/lang/3.18.0-RC2 (svn revision 77972

[CANCEL][VOTE] Release Apache Commons Lang 3.18.0 based on RC1

2025-07-06 Thread Gary Gregory
; #Fri Jul 04 18:23:38 EDT 2025 > artifactId=commons-lang3 > groupId=org.apache.commons > m2e.projectLocation=/Users/garygregory/git/commons-lang > m2e.projectName=commons-lang3 > version=3.18.0 > > * META-INF/MANIFEST.MF contains: > > Build-Jdk-Spec: 23 > > This line appears to

Re: [VOTE] Release Apache Commons Lang 3.18.0 based on RC1

2025-07-06 Thread Piotr P. Karwasz
r Eclipse #Fri Jul 04 18:23:38 EDT 2025 artifactId=commons-lang3 groupId=org.apache.commons m2e.projectLocation=/Users/garygregory/git/commons-lang m2e.projectName=commons-lang3 version=3.18.0 * META-INF/MANIFEST.MF contains: Build-Jdk-Spec: 23 This line appears to have been added by Eclipse and

Re: [LANG] [Question] Anticipated next release date

2025-07-06 Thread Gary Gregory
Matt, A vote to publish a release candidate is in progress started yesterday. Gary On Fri, Jun 20, 2025 at 9:11 AM Gary Gregory wrote: > > > -- Forwarded message - > From: Gary Gregory > Date: Fri, Jun 20, 2025, 09:11 > Subject: Re: [LANG] [Question] Antici

[VOTE] Release Apache Commons Lang 3.18.0 based on RC1

2025-07-04 Thread Gary Gregory
We have fixed a few bugs and added enhancements since Apache Commons Lang 3.17.0 was released, so I would like to release Apache Commons Lang 3.18.0. Apache Commons Lang 3.18.0 RC1 is available for review here: https://dist.apache.org/repos/dist/dev/commons/lang/3.18.0-RC1 (svn revision 77960

Re: (commons-lang) branch master updated: update: commons-parent 81 -> 82

2025-04-25 Thread Rob Tompkins
I reverted the change before you sent this email out. -Rob > On Apr 25, 2025, at 10:46 AM, Gary Gregory wrote: > > Rob, > > Please run a local build before such a change, the build is failing. > > I'll adjust the parent pom to pick an old spotbugs version to run on Java 8... > > Gary > > On

Re: (commons-lang) branch master updated: update: commons-parent 81 -> 82

2025-04-25 Thread Gary Gregory
Rob, Please run a local build before such a change, the build is failing. I'll adjust the parent pom to pick an old spotbugs version to run on Java 8... Gary On Fri, Apr 25, 2025 at 10:38 AM wrote: > > This is an automated email from the ASF dual-hosted git repository. > > chtompki pushed a co

RE: Re: [lang] StringUtils.abbreviate is not emoji aware, breaks surrogate pairs

2025-04-14 Thread Carsten Kirschner
e a unit test with the expected behavior? The example > you gave has console output and assertions commented out, both of > which are undesirable. Instead of me guessing, I'd rather you manage > expectations and provide a failing/passing set of assertions. > > TY! >

Re: [lang] StringUtils.abbreviate is not emoji aware, breaks surrogate pairs

2025-04-14 Thread Gary Gregory
n Sun, Apr 13, 2025 at 7:45 PM Gary Gregory wrote: > > I created https://issues.apache.org/jira/browse/LANG-1770 to track this > report. > > Gary > > On Fri, Apr 11, 2025 at 10:15 AM Carsten Kirschner > wrote: > > > > Hello, > > > > The

Re: [lang] StringUtils.abbreviate is not emoji aware, breaks surrogate pairs

2025-04-13 Thread Gary Gregory
I created https://issues.apache.org/jira/browse/LANG-1770 to track this report. Gary On Fri, Apr 11, 2025 at 10:15 AM Carsten Kirschner wrote: > > Hello, > > The current commons lang3 StringUtils.abbreviate (3.17.0) implementation will > destroy 4 byte emoji characters and

[lang] StringUtils.abbreviate is not emoji aware, breaks surrogate pairs

2025-04-11 Thread Carsten Kirschner
Hello, The current commons lang3 StringUtils.abbreviate (3.17.0) implementation will destroy 4 byte emoji characters and larger grapheme clusters. I know that handling grapheme correctly before java 20 is not possible, but at least a codepoint aware solution with String.offsetByCodPoints could

lang - Syntax error in DiffBuilder documentation

2025-04-02 Thread Ceria Mitchell
Hello, Thank you for a great product. I just wanted to notify you that the code example shown in the DiffBuilder documentation ( https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/builder/DiffBuilder.html) for the DiffBuilder deprecation is syntactically incorrect

Re: [lang] consistency converting dates FastDateFormat vs Calendar

2025-02-11 Thread Gary Gregory
; > time zone experts. > > It's probably time to deprecate FastDateFormat in favor of java.time. > > +1 (even if just to reduce bloat). > > Given the purpose and scope of [Lang], it's on those who would be against > this proposal t

Re: [lang] consistency converting dates FastDateFormat vs Calendar

2025-02-11 Thread Gilles Sadowski
tDateFormat in favor of java.time. +1 (even if just to reduce bloat). Given the purpose and scope of [Lang], it's on those who would be against this proposal to justify their position. [But please start a new threa

Re: [lang] consistency converting dates FastDateFormat vs Calendar

2025-02-11 Thread Elliotte Rusty Harold
I am not surprised you've found issues with FastDateFormat. I'd be more surprised if you didn't. Handling time zones is *hard* and almost everyone gets it wrong, at least at first. In 2025 I wouldn't use either SimpleDateFormat or FastDateFormat. Use java.time and java.time.formatter instead. These

[lang] consistency converting dates FastDateFormat vs Calendar

2025-02-11 Thread Matthew Bellew
I started using FastDateFormat.parser() while expanding some internal tests of an old custom date parser, and killing usages of SimpleDateFormat.parse(). Since FastDateFormat uses Calendar internally to keep state, I was surprised that I got unexpected results when using "generic" timezones. Gene

Re: [LANG] [DISCUSS] Java Modularity support in commons-lang3

2024-12-15 Thread Mark Struberg
tionEquals` on the elements of an > internal list field? Because the javaDoc says exactly that: https://github.com/apache/commons-lang/blob/95d3485cd4312d8e1a846887b0b555eec4f7417b/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java#L199 > IMHO, if you run `reflectionEquals` on

Re: [LANG] [DISCUSS] Java Modularity support in commons-lang3

2024-12-14 Thread Piotr P. Karwasz
Hi Mark, On 9.12.2024 17:37, Mark Struberg wrote: c) try using this on a class which contains e.g. an ArrayList, a Set or a Map. It will e.g. use List#equals() which also does equals() on it's items (btw, I explained this to you already...). Which is NOT what users expect. Instead it should i

[LANG] [DISCUSS] Java Modularity support in commons-lang3

2024-12-09 Thread Mark Struberg
Hi! I created a PR which aims to fix commons-lang behaviour which is broken since quite a few years. To be more precise: commons-lang doesn't fully support anything beyond Java8 due to not acknowledging the java module system (leading to InaccessibleObjectException). And no, adding --add-

Re: [Lang] Method name (Was: [PR] Fb jpms - fixes for [...])

2024-12-09 Thread Gilles Sadowski
Le lun. 9 déc. 2024 à 16:36, sebb a écrit : > > On Mon, 9 Dec 2024 at 15:19, Gilles Sadowski wrote: > > > > Hi. > > > > Following up here on the question on GH: > > > > > why is this disussion again NOT happening on any ASF list but here where > > > it does not get reflected to any ASF list afai

Re: [Lang] Method name (Was: [PR] Fb jpms - fixes for [...])

2024-12-09 Thread sebb
On Mon, 9 Dec 2024 at 15:19, Gilles Sadowski wrote: > > Hi. > > Following up here on the question on GH: > > > why is this disussion again NOT happening on any ASF list but here where it > > does not get reflected to any ASF list afaict? > > As Sebb wrote (below), the discussion is sent to "issue

Re: [Lang] Method name (Was: [PR] Fb jpms - fixes for [...])

2024-12-09 Thread Gilles Sadowski
Hi. Following up here on the question on GH: > why is this disussion again NOT happening on any ASF list but here where it > does not get reflected to any ASF list afaict? As Sebb wrote (below), the discussion is sent to "issues@". Subscribed people can see what is discussed on GH but their ev

Re: [Lang] Method name (Was: [PR] Fb jpms - fixes for [...])

2024-12-07 Thread sebb
jects out there. In the last few months even the oldest > >> projects started moving away from Java8. And so should we imo. So please > >> folks, stop adding --add-opens all over the place. > >> > >> txs and LieGrue, > >> strub > >> > &g

Re: [Lang] Method name (Was: [PR] Fb jpms - fixes for [...])

2024-12-07 Thread Mark Struberg
there. In the last few months even the oldest >> projects started moving away from Java8. And so should we imo. So please >> folks, stop adding --add-opens all over the place. >> >> txs and LieGrue, >> strub >> >> >> >>> Am 06.12.2024 um 13:59 schri

Re: [Lang] Method name (Was: [PR] Fb jpms - fixes for [...])

2024-12-07 Thread sebb
t; folks, stop adding --add-opens all over the place. > > txs and LieGrue, > strub > > > > > Am 06.12.2024 um 13:59 schrieb Gilles Sadowski : > > > > Hi. > > > > Le ven. 6 déc. 2024 à 13:41, struberg (via GitHub) a > > écrit : > >> >

Re: [Lang] Method name (Was: [PR] Fb jpms - fixes for [...])

2024-12-07 Thread Mark Struberg
gt; Hi. > > Le ven. 6 déc. 2024 à 13:41, struberg (via GitHub) a écrit : >> >> >> struberg commented on PR #1328: >> URL: https://github.com/apache/commons-lang/pull/1328#issuecomment-2523134541 >> >> Btw, I'm looking for another method name

[Lang] Method name (Was: [PR] Fb jpms - fixes for [...])

2024-12-06 Thread Gilles Sadowski
Hi. Le ven. 6 déc. 2024 à 13:41, struberg (via GitHub) a écrit : > > > struberg commented on PR #1328: > URL: https://github.com/apache/commons-lang/pull/1328#issuecomment-2523134541 > >Btw, I'm looking for another method name for `isJavaInternalClass()`. It > shou

Re: [LANG] Normalizing StringUtils output

2024-12-04 Thread Piotr P. Karwasz
Hi Gary, On 4.12.2024 12:44, Gary Gregory wrote: The StringUtils methods return a mix of null and "" for each method on null input. Each method does one of the following: - null out for null in - "" out for null in - null for null and "" for "" - throw an NPE We definitively need to put some

Re: [LANG] Normalizing StringUtils output

2024-12-04 Thread Dávid Szigecsán
Hi, In my opinion it would be nice if all the methods do the same for the same null or empty string input and would be consistent, but... I won't change the existing API in the current 3.x version. So I think we should fix them only in 4.0. However, we should fix it in the Strings class, before it

[LANG] Normalizing StringUtils output

2024-12-04 Thread Gary Gregory
Hi all, The StringUtils methods return a mix of null and "" for each method on null input. Each method does one of the following: - null out for null in - "" out for null in - null for null and "" for "" - throw an NPE The newer class Strings does the same as it backs StringUtils. Should we: -

Re: [LANG] RuntimeEnvironment class

2024-12-01 Thread sebb
On Sun, 1 Dec 2024 at 14:35, Piotr P. Karwasz wrote: > > Hi sebb, > > On 1.12.2024 12:27, sebb wrote: > > It's not clear to me that this belongs in LANG. > > I tend to agree with you. Since the purpose of containers is to run > applications the same way they would

Re: [LANG] RuntimeEnvironment class

2024-12-01 Thread Piotr P. Karwasz
Hi sebb, On 1.12.2024 12:27, sebb wrote: It's not clear to me that this belongs in LANG. I tend to agree with you. Since the purpose of containers is to run applications the same way they would run on the host system, I don't believe this method belongs to any Java library. Unf

Re: [LANG] RuntimeEnvironment class

2024-12-01 Thread Gary Gregory
iced the RuntimeEnvironment class. > > It's not clear to me that this belongs in LANG. > > Assuming it does, I have doubts about how accurate it is. > I just looked in a couple of Docker containers, and neither contained > the expected entry in /proc/1/cgroup. > At the very le

[LANG] RuntimeEnvironment class

2024-12-01 Thread sebb
Just noticed the RuntimeEnvironment class. It's not clear to me that this belongs in LANG. Assuming it does, I have doubts about how accurate it is. I just looked in a couple of Docker containers, and neither contained the expected entry in /proc/1/cgroup. At the very least there need to be

[lang][LANG-1172] Back and forth on LocaleUtils.toLocale()

2024-09-20 Thread Curry, Josh
Hi All, Following up on this as LANG-1172 changed the previously declared contract of this method. Prior to 2.13, the logic and javadocs clearly stated that the separator must be underscore, but with this change it now also excepts dash. Javadocs from 2.12: "This method validates the

[lang][LANG-1172] Back and forth on LocaleUtils.toLocale()

2024-09-04 Thread Gary D. Gregory
Hi All, I'd like to settle on the implementation of LocaleUtils.toLocale() one way or another and clearly document expectations. What should we do? Please see: - https://issues.apache.org/jira/browse/LANG-1172 - https://github.com/apache/commons-lang/pull/766 - https://github.com/a

[ANNOUNCE] Apache Commons Lang 3.17.0

2024-08-29 Thread Gary Gregory
The Apache Commons team is pleased to announce Apache Commons Lang Version 3.17.0. Commons Lang is a set of utility functions and reusable components that should be useful in any Java environment. Starting with Commons Lang 3.9, we target Java 8, using those features. For advice on upgrading

[RESULT][VOTE] Release Apache Commons Lang 3.17.0 based on RC1

2024-08-29 Thread Gary Gregory
e have fixed a few bugs and added enhancements since Apache Commons Lang > > 3.16.0 was released, so I would like to release Apache Commons Lang 3.17.0. > > > > Apache Commons Lang 3.17.0 RC1 is available for review here: > >https://dist.apache.org/repos/dist/dev/commons/l

Re: [VOTE] Release Apache Commons Lang 3.17.0 based on RC1

2024-08-29 Thread Rob Tompkins
+1 > On Aug 24, 2024, at 3:21 PM, Gary Gregory wrote: > > We have fixed a few bugs and added enhancements since Apache Commons Lang > 3.16.0 was released, so I would like to release Apache Commons Lang 3.17.0. > > Apache Commons Lang 3.17.0 RC1 is available for revie

Re: [VOTE] Release Apache Commons Lang 3.17.0 based on RC1

2024-08-27 Thread Henri Biestro
[ +1 ] Build & tests ok, javadoc ok, reports look good (nice coverage), site looks nice. Built using: mvn clean install site -s "$HOME/.m2/commons-settings.xml" On: Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63) Maven home: /Users/hbiestro/Java/apache-maven-3.8.6 Java version: 1.8

Re: [VOTE] Release Apache Commons Lang 3.17.0 based on RC1

2024-08-24 Thread Gary Gregory
My +1 Gary On Sat, Aug 24, 2024 at 3:21 PM Gary Gregory wrote: > We have fixed a few bugs and added enhancements since Apache Commons Lang > 3.16.0 was released, so I would like to release Apache Commons Lang 3.17.0. > > Apache Commons Lang 3.17.0 RC1 is available for review here:

[VOTE] Release Apache Commons Lang 3.17.0 based on RC1

2024-08-24 Thread Gary Gregory
We have fixed a few bugs and added enhancements since Apache Commons Lang 3.16.0 was released, so I would like to release Apache Commons Lang 3.17.0. Apache Commons Lang 3.17.0 RC1 is available for review here: https://dist.apache.org/repos/dist/dev/commons/lang/3.17.0-RC1 (svn revision 71083

Re: [LANG] LANG-1747: Measure the execution time of functional interfaces #1254

2024-08-17 Thread Gary Gregory
ctions to > use a single, overloaded name, e.g. StopWatch::timed(...) or > StopWatch::withTiming(...) > > /peter > > On Fri, Aug 16, 2024, 10:50 PM Gary Gregory > wrote: > > > Hi all, > > > > Please provide any feedback on > > - LANG-1747: Measure

Re: [LANG] LANG-1747: Measure the execution time of functional interfaces #1254

2024-08-17 Thread Peter Burka
his.) I'd propose renaming all of the functional interface-wrapping functions to use a single, overloaded name, e.g. StopWatch::timed(...) or StopWatch::withTiming(...) /peter On Fri, Aug 16, 2024, 10:50 PM Gary Gregory wrote: > Hi all, > > Please provide any feedback on > - LANG-

[LANG] LANG-1747: Measure the execution time of functional interfaces #1254

2024-08-16 Thread Gary Gregory
Hi all, Please provide any feedback on - LANG-1747: Measure the execution time of functional interfaces #1254 - https://github.com/apache/commons-lang/pull/1254/ TY! Gary - To unsubscribe, e-mail: dev-unsubscr

[lang] Thoughs on merging PR "Support generation of single quotes #1227"

2024-08-13 Thread Gary D. Gregory
Hi All, I'd like some thoughts on merging https://github.com/apache/commons-lang/pull/1227 It seems OK to me. Anyone else? TY! Gary - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e

[ANNOUNCE] Apache Commons Lang Version 3.16.0

2024-08-07 Thread Gary Gregory
The Apache Commons team is pleased to announce Apache Commons Lang Version 3.16.0. Commons Lang is a set of utility functions and reusable components that should be useful in any Java environment. Starting with Commons Lang 3.9, we target Java 8, using those features. For advice on upgrading

Re: [VOTE] Release Apache Commons Lang 3.16.0 based on RC1

2024-08-07 Thread Gary Gregory
;, family: "unix" > > Thanks!!! > > On 2024/08/01 12:34:55 Gary Gregory wrote: > > We have fixed a few bugs and added enhancements since Apache Commons > > Lang 3.15.0 was released, so I would like to release Apache Commons > > Lang 3.16.0. > > > >

Re: [VOTE] Release Apache Commons Lang 3.16.0 based on RC1

2024-08-07 Thread Bruno P. Kinoshita
family: "unix" Thanks!!! On 2024/08/01 12:34:55 Gary Gregory wrote: > We have fixed a few bugs and added enhancements since Apache Commons > Lang 3.15.0 was released, so I would like to release Apache Commons > Lang 3.16.0. > > Apache Commons Lang 3.16.0 RC1 is available fo

Re: [VOTE] Release Apache Commons Lang 3.16.0 based on RC1

2024-08-02 Thread Gary Gregory
My +1 Gary On Fri, Aug 2, 2024 at 11:17 AM Rob Tompkins wrote: > > +1 all looks good to me. > > Thanks Gary! > > -Rob > > > On Aug 1, 2024, at 8:34 AM, Gary Gregory wrote: > > > > We have fixed a few bugs and added enhancements since Apache Commons > &

Re: [VOTE] Release Apache Commons Lang 3.16.0 based on RC1

2024-08-02 Thread Tomas Lanik
[+1] Thank you! Tomas Lanik On Thu, Aug 1, 2024, 14:35 Gary Gregory wrote: > We have fixed a few bugs and added enhancements since Apache Commons > Lang 3.15.0 was released, so I would like to release Apache Commons > Lang 3.16.0. > > Apache Commons Lang 3.16.0 RC1 is avail

Re: [VOTE] Release Apache Commons Lang 3.16.0 based on RC1

2024-08-02 Thread Rob Tompkins
+1 all looks good to me. Thanks Gary! -Rob > On Aug 1, 2024, at 8:34 AM, Gary Gregory wrote: > > We have fixed a few bugs and added enhancements since Apache Commons > Lang 3.15.0 was released, so I would like to release Apache Commons > Lang 3.16.0. > > Apache Commo

[VOTE] Release Apache Commons Lang 3.16.0 based on RC1

2024-08-01 Thread Gary Gregory
We have fixed a few bugs and added enhancements since Apache Commons Lang 3.15.0 was released, so I would like to release Apache Commons Lang 3.16.0. Apache Commons Lang 3.16.0 RC1 is available for review here: https://dist.apache.org/repos/dist/dev/commons/lang/3.16.0-RC1 (svn revision 70651

[ANNOUNCE] Apache Commons Lang Version 3.15.0

2024-07-18 Thread Gary Gregory
The Apache Commons team is pleased to announce Apache Commons Lang Version 3.15.0. Commons Lang is a set of utility functions and reusable components that should be useful in any Java environment. Starting with Commons Lang 3.9, we target Java 8, using those features. For advice on upgrading

[RESULT][VOTE] Release Apache Commons Lang 3.15.0 based on RC2

2024-07-17 Thread Gary Gregory
This vote passes with the following votes: - Gary Gregory (ggregory, binding) - Tomas Lanik (non-binding) - Rob Tompkins (chtompki, binding) - Henri Biestro (henrib, binding) Gary On Wed, Jul 17, 2024 at 2:17 PM Henri Biestro wrote: > > [ +1 ] > > Builds and tests ok; site and Javadoc look good

Re: [VOTE] Release Apache Commons Lang 3.15.0 based on RC2

2024-07-17 Thread Henri Biestro
[ +1 ] Builds and tests ok; site and Javadoc look good, reports are ok (commendable coverage btw, nit JIRA report with no version and Tag List report shows a lot of todo/fixme/etc). Built using: mvn -P jacoco -P japicmp clean install site -s ~/.m2/commons-settings.xml With JDK: openjdk version

Re: [VOTE] Release Apache Commons Lang 3.15.0 based on RC2

2024-07-16 Thread Rob Tompkins
+1 all looks good. Signatures, site release notes, builds java 11, 17, 21. Thank you Gary!!! -Rob > On Jul 13, 2024, at 7:08 PM, Gary Gregory wrote: > > We have fixed a few bugs and added enhancements since Apache Commons > Lang 3.14.0 was released, so I would like to release Ap

Re: [VOTE] Release Apache Commons Lang 3.15.0 based on RC2

2024-07-16 Thread Gary D. Gregory
Tomas, What did you do to review the release candidate? TY, Gary On 2024/07/15 06:47:37 Tomas Lanik wrote: > My +1 > > Tomas Lanik > > On Sun, Jul 14, 2024, 01:09 Gary Gregory wrote: > > > We have fixed a few bugs and added enhancements since Apache Commons > >

Re: [VOTE] Release Apache Commons Lang 3.15.0 based on RC2

2024-07-14 Thread Tomas Lanik
My +1 Tomas Lanik On Sun, Jul 14, 2024, 01:09 Gary Gregory wrote: > We have fixed a few bugs and added enhancements since Apache Commons > Lang 3.14.0 was released, so I would like to release Apache Commons > Lang 3.15.0. > > Apache Commons Lang 3.15.0 RC2 is available

Re: [VOTE] Release Apache Commons Lang 3.15.0 based on RC2

2024-07-14 Thread Gary Gregory
My +1 Gary On Sat, Jul 13, 2024, 7:08 PM Gary Gregory wrote: > We have fixed a few bugs and added enhancements since Apache Commons > Lang 3.14.0 was released, so I would like to release Apache Commons > Lang 3.15.0. > > Apache Commons Lang 3.15.0 RC2 is available for review he

RE: [CANCEL][VOTE] Release Apache Commons Lang 3.15.0 based on RC1

2024-07-14 Thread VECHT Kumar
ry > > > > On Sat, Jul 13, 2024 at 5:04 PM Gilles Sadowski wrote: > > > > > > Le sam. 13 juil. 2024 à 17:13, Gary Gregory a écrit : > > > > > > > > We have fixed a few bugs and added enhancements since Apache Commons > > > > Lang 3.14.0 was

[VOTE] Release Apache Commons Lang 3.15.0 based on RC2

2024-07-13 Thread Gary Gregory
We have fixed a few bugs and added enhancements since Apache Commons Lang 3.14.0 was released, so I would like to release Apache Commons Lang 3.15.0. Apache Commons Lang 3.15.0 RC2 is available for review here: https://dist.apache.org/repos/dist/dev/commons/lang/3.15.0-RC2 (svn revision 70292

[CANCEL][VOTE] Release Apache Commons Lang 3.15.0 based on RC1

2024-07-13 Thread Gary Gregory
Gary Gregory a écrit : > > > > > > We have fixed a few bugs and added enhancements since Apache Commons > > > Lang 3.14.0 was released, so I would like to release Apache Commons > > > Lang 3.15.0. > > > > > >

Re: [VOTE] Release Apache Commons Lang 3.15.0 based on RC1

2024-07-13 Thread Gary Gregory
Good catch! I'll spin another RC. Gary Gary On Sat, Jul 13, 2024 at 5:04 PM Gilles Sadowski wrote: > > Le sam. 13 juil. 2024 à 17:13, Gary Gregory a écrit : > > > > We have fixed a few bugs and added enhancements since Apache Commons > > Lang 3.14.0 was release

Re: [VOTE] Release Apache Commons Lang 3.15.0 based on RC1

2024-07-13 Thread Gilles Sadowski
Le sam. 13 juil. 2024 à 17:13, Gary Gregory a écrit : > > We have fixed a few bugs and added enhancements since Apache Commons > Lang 3.14.0 was released, so I would like to release Apache Commons > Lang 3.15.0. > What about point (2) in https://lists.ap

[VOTE] Release Apache Commons Lang 3.15.0 based on RC1

2024-07-13 Thread Gary Gregory
We have fixed a few bugs and added enhancements since Apache Commons Lang 3.14.0 was released, so I would like to release Apache Commons Lang 3.15.0. Apache Commons Lang 3.15.0 RC1 is available for review here: https://dist.apache.org/repos/dist/dev/commons/lang/3.15.0-RC1 (svn revision 70284

Re: [apache/commons-lang] Reimplement RandomStringUtils on top of SecureRandom#getInstanceStrong() (PR #1235)

2024-06-15 Thread Phil Steitz
> there. > > To address the point "1) gen time performance cost", I’ve written some > optimizations on top of the current PR: garydgregory#2 > <https://github.com/garydgregory/commons-lang/pull/2> > > Benchmarking using JMH with JDK 8 on an AWS c6a.xlarge instanc

Re: [LANG] Add Any Checks for Not Checks in StringUtils

2024-06-13 Thread Department 8
!isAnyBlank(css); > > > > > } > > > > > > > > > > public static boolean isNoneEmpty(final CharSequence... css) { > > > > > return !isAnyEmpty(css); > > > > > } > > > > > > > > >

Re: [LANG] Add Any Checks for Not Checks in StringUtils

2024-06-13 Thread Gary D. Gregory
gt; > > > > So it is not without precedent to add more methods that are simple > > > > negations. However we have to consider if this is code bloat, or if the > > > > addition of simple negation methods is so useful that it warrants > > > >

Re: [LANG] Add Any Checks for Not Checks in StringUtils

2024-06-12 Thread Department 8
he > > > addition of simple negation methods is so useful that it warrants > > > inclusion. I would currently consider this as redundant given the lack > of > > > actual logic in the methods. > > > > > > Alex > > > > > > > > >

Re: [LANG] Add Any Checks for Not Checks in StringUtils

2024-06-12 Thread Gary Gregory
lack of > > actual logic in the methods. > > > > Alex > > > > > > > > > > On Wed, 12 Jun 2024 at 22:29, Department 8 > > > wrote: > > > > > > > I just realized the subject name is bad. But here are the two small > >

Re: [LANG] Add Any Checks for Not Checks in StringUtils

2024-06-12 Thread Department 8
; On Wed, 12 Jun 2024 at 22:29, Department 8 > > wrote: > > > > > I just realized the subject name is bad. But here are the two small > > > methods I propose - *isAnyNotBlank* and *isAnyNotEmpty*. > > > > > > Please find the pull request as here: > > &

Re: [LANG] Add Any Checks for Not Checks in StringUtils

2024-06-12 Thread Alex Herbert
subject name is bad. But here are the two small > > methods I propose - *isAnyNotBlank* and *isAnyNotEmpty*. > > > > Please find the pull request as here: > > https://github.com/apache/commons-lang/pull/1234 > > > > On Wed, 12 Jun 2024 at 21:52, Department 8

Re: [LANG] Add Any Checks for Not Checks in StringUtils

2024-06-12 Thread Department 8
tEmpty*. > > Please find the pull request as here: > https://github.com/apache/commons-lang/pull/1234 > > On Wed, 12 Jun 2024 at 21:52, Department 8 > wrote: > >> Hey! >> >> Recently when using StringUtils in one of our projects I had felt the >> urgent

Re: [LANG] Add Any Checks for Not Checks in StringUtils

2024-06-12 Thread Department 8
I just realized the subject name is bad. But here are the two small methods I propose - *isAnyNotBlank* and *isAnyNotEmpty*. Please find the pull request as here: https://github.com/apache/commons-lang/pull/1234 On Wed, 12 Jun 2024 at 21:52, Department 8 wrote: > Hey! > > Recently w

Re: [LANG] Add Any Checks for Not Checks in StringUtils

2024-06-12 Thread Alex Herbert
Hi, On Wed, 12 Jun 2024 at 17:23, Department 8 wrote: > Hey! > > Recently when using StringUtils in one of our projects I had felt the > urgent need to have a utility method like => isAnyNotBlank. > > I was able to achieve this using the negation of isAllBlank, so I am > thinking of introducing

Re: Re: [LANG] Support single quotes in DurationFormatUtils methods' formats

2024-05-31 Thread Daniel Watson
e to do to support single quotes, and I can imagine use cases for both. On Thu, May 30, 2024 at 2:48 PM Gary D. Gregory wrote: > I'm OK with Sebb's solution [1] > > Any further thoughts here? > > Gary > [1] https://github.com/apache/commons-lang/pull/1227 > > On 202

Re: Re: [LANG] Support single quotes in DurationFormatUtils methods' formats

2024-05-30 Thread Gary D. Gregory
I'm OK with Sebb's solution [1] Any further thoughts here? Gary [1] https://github.com/apache/commons-lang/pull/1227 On 2024/05/29 13:37:40 Mike Drob wrote: > On Wed, May 29, 2024 at 8:17 AM Gary Gregory wrote: > > > (Sorry for the top post, phone) > > >

Re: Re: [LANG] Support single quotes in DurationFormatUtils methods' formats

2024-05-29 Thread Mike Drob
ew assertions indeed fail > > when interpreting the duplicate single quote as an escaped quote instead > of > > a closing and opening quote. In particular, "y' ''years' M 'months'" is > > interpreted as "4 'years 0 months&qu

Re: Re: [LANG] Support single quotes in DurationFormatUtils methods' formats

2024-05-29 Thread Gary Gregory
7; ''years' M 'months'" is > interpreted as "4 'years 0 months" while the expected text lacks the quote > before "years". Same for "hello''world": it's interpreted as "hello'world" > instead of &q

Re: Re: [LANG] Support single quotes in DurationFormatUtils methods' formats

2024-05-29 Thread sebb
lo''world": it's interpreted as "hello'world" > > instead of "helloworld". > > Please see https://github.com/apache/commons-lang/pull/1227 for an > alternate solution. > This does not cause issues with any existing tests. > >

Re: Re: [LANG] Support single quotes in DurationFormatUtils methods' formats

2024-05-26 Thread sebb
x27; ''years' M 'months'" is > interpreted as "4 'years 0 months" while the expected text lacks the quote > before "years". Same for "hello''world": it's interpreted as "hello'world" > instead

RE: Re: [LANG] Support single quotes in DurationFormatUtils methods' formats

2024-05-26 Thread Laertes Moustakas
esitate to contact me. Best regards, Laertes On 2024/05/25 13:47:23 Gary Gregory wrote: > Hello Laertes, > > Thank you for your interest in improving Apache Commons Lang :-) > > Do you foresee any compatibility issues for existing call sites and

Re: [LANG] Support single quotes in DurationFormatUtils methods' formats

2024-05-25 Thread Gary Gregory
Hello Laertes, Thank you for your interest in improving Apache Commons Lang :-) Do you foresee any compatibility issues for existing call sites and format strings? For example, can you make your use cases work and still support: https://github.com/apache/commons-lang/blob

Re: (commons-lang) branch master updated: Undoing 3322d974876b8d4f934d3544967103ebbcaef726

2024-05-22 Thread Gary Gregory
The build is broken. This maybe should have been a git revert instead of a plain commit. Gary On Wed, May 22, 2024, 2:00 PM wrote: > This is an automated email from the ASF dual-hosted git repository. > > jochen pushed a commit to branch master > in repository https://gitbox.apache.org/repos/a

Re: (commons-lang) branch master updated: Adding the @Insecure, and @Safe annotations.

2024-05-16 Thread sebb
On Fri, 17 May 2024 at 00:11, Gary Gregory wrote: > > Can we PLEASE not do this unless we know what the plan is for Commons > overall? I really don't want to have this stuff copied in all Commons > Components because I doubt we will want to add Commons Lang as a dependency &g

Re: (commons-lang) branch master updated: Adding the @Insecure, and @Safe annotations.

2024-05-16 Thread Gary Gregory
Can we PLEASE not do this unless we know what the plan is for Commons overall? I really don't want to have this stuff copied in all Commons Components because I doubt we will want to add Commons Lang as a dependency in all Components. So, what's the plan? Do you plan on copying this stuf

Re: (commons-lang) 01/02: Deprecate SystemUtils.getUserName(String) in favor of SystemProperties.getUserName(Supplier)

2024-05-02 Thread Gary D. Gregory
I meant I'll only change the Suppliers to Strings. The deprecations are fine IMO. This is how I see it: - Stock system property access is done through SystemProperties (you get Strings) - More advanced services that require conversions like getting a Stream of Paths for a java.class.path is don

Re: (commons-lang) 01/02: Deprecate SystemUtils.getUserName(String) in favor of SystemProperties.getUserName(Supplier)

2024-05-02 Thread Gary D. Gregory
Hello Elliotte, OK, I'll use String defaults instead of Suppliers. Gary On 2024/05/02 16:48:48 Elliotte Rusty Harold wrote: > I'm OK with preferring SystemProperties though I'm not sure that > alpine justifies a new method and deprecation. > > I second the opinion that a literal string is stron

Re: (commons-lang) 01/02: Deprecate SystemUtils.getUserName(String) in favor of SystemProperties.getUserName(Supplier)

2024-05-02 Thread Gary D. Gregory
Hi Bernd, Sounds reasonable. I'll revert the deprecation and use String defaults instead of Suppliers. Gary On 2024/05/01 17:56:34 Bernd Eckenfels wrote: > Hi Gregory, > > What’s the idea behind that deprecation? The implementation is robust and > simple and easy to use. I would guess most us

Re: (commons-lang) 01/02: Deprecate SystemUtils.getUserName(String) in favor of SystemProperties.getUserName(Supplier)

2024-05-02 Thread Elliotte Rusty Harold
I'm OK with preferring SystemProperties though I'm not sure that alpine justifies a new method and deprecation. I second the opinion that a literal string is strongly preferable to a Supplier here. Pick the simplest thing that could possibly work. As Knuth warned us, premature optimization is the

Re: (commons-lang) 01/02: Deprecate SystemUtils.getUserName(String) in favor of SystemProperties.getUserName(Supplier)

2024-05-01 Thread Gary Gregory
It feels like the supplier version is much better to avoid the use case of building the string in place. I would also like to centralize all things related directly to sys props in the SysProp class. This way, you know to look in one place instead of sometimes here and sometimes there. Do you thi

Re: (commons-lang) 01/02: Deprecate SystemUtils.getUserName(String) in favor of SystemProperties.getUserName(Supplier)

2024-05-01 Thread Bernd Eckenfels
Hi Gregory, What’s the idea behind that deprecation? The implementation is robust and simple and easy to use. I would guess most user rather want to specify a literal fallback than a supplier. Gruss Bernd ggreg...@apache.org wrote on 1. May 2024 16:07 (GMT +02:00): > This is an automated emai

Re: [LANG] EqualsBuilder#reflectionEquals feature brainstorming

2024-03-08 Thread Mark Struberg
>>> +++ >> b/src/main/java/org/apache/commons/lang3/builder/EqualsBuilder.java >>>>>> @@ -978,6 +978,16 @@ public EqualsBuilder reflectionAppend(final >> Object lhs, final Object rhs) { >>>>>> if (bypassReflectionClasses != null >>>>>&

Re: [LANG] EqualsBuilder#reflectionEquals feature brainstorming

2024-03-08 Thread Gary Gregory
;if (bypassReflectionClasses != null > >>>>&& (bypassReflectionClasses.contains(lhsClass) || > bypassReflectionClasses.contains(rhsClass))) { > >>>>isEquals = lhs.equals(rhs); > >>>> +

  1   2   3   4   5   6   7   8   9   10   >