commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: [lang] - Remove RandomStringUtils deprecation / move it to [text]?
Date Thu, 13 Jul 2017 20:06:23 GMT
Can one be pitch for entry level and the other for advanced use cases?

If so, just un-deprecate but still Javadoc to [text] the user's edification.

Gary

On Thu, Jul 13, 2017 at 1:02 PM, Pascal Schumacher <pascalschumacher@gmx.net
> wrote:

> Hello everybody,
>
> with 3.5 we deprecated RandomStringUtils in favor of RandomStringGenerator
> in commons-text.
>
> https://issues.apache.org/jira/browse/TEXT-96 complains that
> "RandomStringGenerator is extremely verbose compared to the deprecated
> commons.lang3 RandomStringUtils."
>
> From my experience taking a look at migrating a project from
> RandomStringUtils to RandomStringGenerator I have to agree. Some
> convenience methods will be added with the next commons text release, but
> it still won't be as easy to use as RandomStringUtils. For course
> RandomStringGenerator gives the user more options, but most usage of
> RandomStringUtils I have seen was just for tests or other simple use-cases
> where these option are not required.
>
> Maybe we should just remove the RandomStringUtils deprecation or add the
> whole class untouched to commons-text?
>
> What do you think?
>
> Cheers,
>
> Pascal
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message