I just ran into this the other day. Was going to switch to the commons-text 
version, but it was to much trouble and decided to stick with the deprecated 
version in Commons-langĀ 

-------- Original message --------
From: Pascal Schumacher <pascalschumac...@gmx.net> 
Date: 7/13/17  4:02 PM  (GMT-05:00) 
To: Commons Developers List <dev@commons.apache.org> 
Subject: [lang] - Remove RandomStringUtils deprecation / move it to [text]? 

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

Reply via email to